mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 17:42:33 -06:00
43 lines
1.2 KiB
Java
43 lines
1.2 KiB
Java
package com.google.common.collect;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.List;
|
|
import javax.annotation.CheckForNull;
|
|
|
|
@ElementTypesAreNonnullByDefault
|
|
/* loaded from: classes3.dex */
|
|
final class AllEqualOrdering extends Ordering<Object> implements Serializable {
|
|
static final AllEqualOrdering INSTANCE = new AllEqualOrdering();
|
|
private static final long serialVersionUID = 0;
|
|
|
|
private Object readResolve() {
|
|
return INSTANCE;
|
|
}
|
|
|
|
@Override // com.google.common.collect.Ordering, java.util.Comparator
|
|
public int compare(@CheckForNull Object obj, @CheckForNull Object obj2) {
|
|
return 0;
|
|
}
|
|
|
|
@Override // com.google.common.collect.Ordering
|
|
public <S> Ordering<S> reverse() {
|
|
return this;
|
|
}
|
|
|
|
public String toString() {
|
|
return "Ordering.allEqual()";
|
|
}
|
|
|
|
AllEqualOrdering() {
|
|
}
|
|
|
|
@Override // com.google.common.collect.Ordering
|
|
public <E> List<E> sortedCopy(Iterable<E> iterable) {
|
|
return Lists.newArrayList(iterable);
|
|
}
|
|
|
|
@Override // com.google.common.collect.Ordering
|
|
public <E> ImmutableList<E> immutableSortedCopy(Iterable<E> iterable) {
|
|
return ImmutableList.copyOf(iterable);
|
|
}
|
|
}
|