what-the-bank/sources/com/google/common/collect/UsingToStringOrdering.java

26 lines
710 B
Java

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