48 lines
1.5 KiB
Java
48 lines
1.5 KiB
Java
package com.google.common.collect;
|
|
|
|
import com.google.common.base.Preconditions;
|
|
import java.io.Serializable;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class ReverseNaturalOrdering extends Ordering<Comparable> implements Serializable {
|
|
static final ReverseNaturalOrdering a = new ReverseNaturalOrdering();
|
|
|
|
private ReverseNaturalOrdering() {
|
|
}
|
|
|
|
private Object readResolve() {
|
|
return a;
|
|
}
|
|
|
|
@Override // com.google.common.collect.Ordering
|
|
/* renamed from: c, reason: merged with bridge method [inline-methods] */
|
|
public <E extends Comparable> E b(E e, E e2) {
|
|
return (E) NaturalOrdering.a.a(e, e2);
|
|
}
|
|
|
|
public String toString() {
|
|
return "Ordering.natural().reverse()";
|
|
}
|
|
|
|
@Override // com.google.common.collect.Ordering, java.util.Comparator
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public int compare(Comparable comparable, Comparable comparable2) {
|
|
Preconditions.a(comparable);
|
|
if (comparable == comparable2) {
|
|
return 0;
|
|
}
|
|
return comparable2.compareTo(comparable);
|
|
}
|
|
|
|
@Override // com.google.common.collect.Ordering
|
|
public <S extends Comparable> Ordering<S> b() {
|
|
return Ordering.c();
|
|
}
|
|
|
|
@Override // com.google.common.collect.Ordering
|
|
/* renamed from: b, reason: merged with bridge method [inline-methods] */
|
|
public <E extends Comparable> E a(E e, E e2) {
|
|
return (E) NaturalOrdering.a.b(e, e2);
|
|
}
|
|
}
|