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

42 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.common.collect;
import java.io.Serializable;
import java.util.List;
/* loaded from: classes2.dex */
final class AllEqualOrdering extends Ordering<Object> implements Serializable {
static final AllEqualOrdering INSTANCE = new AllEqualOrdering();
private static final long serialVersionUID = 0;
@Override // com.google.common.collect.Ordering, java.util.Comparator
public final int compare(Object obj, Object obj2) {
return 0;
}
@Override // com.google.common.collect.Ordering
public final <S> Ordering<S> reverse() {
return this;
}
AllEqualOrdering() {
}
@Override // com.google.common.collect.Ordering
public final <E> List<E> sortedCopy(Iterable<E> iterable) {
return Lists.newArrayList(iterable);
}
@Override // com.google.common.collect.Ordering
public final <E> ImmutableList<E> immutableSortedCopy(Iterable<E> iterable) {
return ImmutableList.copyOf(iterable);
}
public final String toString() {
return "Ordering.allEqual()";
}
private Object readResolve() {
return INSTANCE;
}
}