Rabbit-R1/android (non root)/java/sources/com/google/common/collect/UsingToStringOrdering.java
2024-05-21 17:08:36 -04:00

26 lines
731 B
Java

package com.google.common.collect;
import java.io.Serializable;
@ElementTypesAreNonnullByDefault
/* loaded from: classes3.dex */
final class UsingToStringOrdering extends Ordering<Object> implements Serializable {
static final UsingToStringOrdering INSTANCE = new UsingToStringOrdering();
private static final long serialVersionUID = 0;
private Object readResolve() {
return INSTANCE;
}
public String toString() {
return "Ordering.usingToString()";
}
@Override // com.google.common.collect.Ordering, java.util.Comparator
public int compare(Object obj, Object obj2) {
return obj.toString().compareTo(obj2.toString());
}
private UsingToStringOrdering() {
}
}