Rabbit-R1/switch port/java/sources/com/google/common/collect/UsingToStringOrdering.java

27 lines
731 B
Java
Raw Normal View History

2024-05-21 21:08:36 +00:00
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() {
}
}