package com.google.common.collect; import com.google.common.base.Preconditions; import java.io.Serializable; import java.util.Iterator; @ElementTypesAreNonnullByDefault /* loaded from: classes3.dex */ final class ReverseNaturalOrdering extends Ordering> implements Serializable { static final ReverseNaturalOrdering INSTANCE = new ReverseNaturalOrdering(); private static final long serialVersionUID = 0; private Object readResolve() { return INSTANCE; } public String toString() { return "Ordering.natural().reverse()"; } @Override // com.google.common.collect.Ordering, java.util.Comparator public int compare(Comparable comparable, Comparable comparable2) { Preconditions.checkNotNull(comparable); if (comparable == comparable2) { return 0; } return comparable2.compareTo(comparable); } @Override // com.google.common.collect.Ordering public > Ordering reverse() { return Ordering.natural(); } @Override // com.google.common.collect.Ordering public > E min(E e, E e2) { return (E) NaturalOrdering.INSTANCE.max(e, e2); } @Override // com.google.common.collect.Ordering public > E min(E e, E e2, E e3, E... eArr) { return (E) NaturalOrdering.INSTANCE.max(e, e2, e3, eArr); } @Override // com.google.common.collect.Ordering public > E min(Iterator it) { return (E) NaturalOrdering.INSTANCE.max(it); } @Override // com.google.common.collect.Ordering public > E min(Iterable iterable) { return (E) NaturalOrdering.INSTANCE.max(iterable); } @Override // com.google.common.collect.Ordering public > E max(E e, E e2) { return (E) NaturalOrdering.INSTANCE.min(e, e2); } @Override // com.google.common.collect.Ordering public > E max(E e, E e2, E e3, E... eArr) { return (E) NaturalOrdering.INSTANCE.min(e, e2, e3, eArr); } @Override // com.google.common.collect.Ordering public > E max(Iterator it) { return (E) NaturalOrdering.INSTANCE.min(it); } @Override // com.google.common.collect.Ordering public > E max(Iterable iterable) { return (E) NaturalOrdering.INSTANCE.min(iterable); } private ReverseNaturalOrdering() { } }