143 lines
4.7 KiB
Java
143 lines
4.7 KiB
Java
package com.google.common.collect;
|
|
|
|
import java.io.Serializable;
|
|
import java.lang.Comparable;
|
|
import java.util.NoSuchElementException;
|
|
import java.util.Set;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class EmptyContiguousSet<C extends Comparable> extends ContiguousSet<C> {
|
|
|
|
private static final class SerializedForm<C extends Comparable> implements Serializable {
|
|
private final DiscreteDomain<C> a;
|
|
|
|
private Object readResolve() {
|
|
return new EmptyContiguousSet(this.a);
|
|
}
|
|
|
|
private SerializedForm(DiscreteDomain<C> discreteDomain) {
|
|
this.a = discreteDomain;
|
|
}
|
|
}
|
|
|
|
EmptyContiguousSet(DiscreteDomain<C> discreteDomain) {
|
|
super(discreteDomain);
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSet, com.google.common.collect.ImmutableCollection
|
|
public ImmutableList<C> asList() {
|
|
return ImmutableList.of();
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection, java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public boolean contains(Object obj) {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ContiguousSet, com.google.common.collect.ImmutableSortedSet
|
|
ImmutableSortedSet<C> createDescendingSet() {
|
|
return ImmutableSortedSet.emptySet(Ordering.c().b());
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSet, java.util.Collection, java.util.Set
|
|
public boolean equals(Object obj) {
|
|
if (obj instanceof Set) {
|
|
return ((Set) obj).isEmpty();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSet, java.util.Collection, java.util.Set
|
|
public int hashCode() {
|
|
return 0;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // com.google.common.collect.ContiguousSet, com.google.common.collect.ImmutableSortedSet
|
|
public ContiguousSet<C> headSetImpl(C c, boolean z) {
|
|
return this;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSortedSet
|
|
int indexOf(Object obj) {
|
|
return -1;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ContiguousSet
|
|
public ContiguousSet<C> intersection(ContiguousSet<C> contiguousSet) {
|
|
return this;
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public boolean isEmpty() {
|
|
return true;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSet
|
|
boolean isHashCodeFast() {
|
|
return true;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableCollection
|
|
boolean isPartialView() {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ContiguousSet
|
|
public Range<C> range() {
|
|
throw new NoSuchElementException();
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public int size() {
|
|
return 0;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // com.google.common.collect.ContiguousSet, com.google.common.collect.ImmutableSortedSet
|
|
public ContiguousSet<C> subSetImpl(C c, boolean z, C c2, boolean z2) {
|
|
return this;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // com.google.common.collect.ContiguousSet, com.google.common.collect.ImmutableSortedSet
|
|
public ContiguousSet<C> tailSetImpl(C c, boolean z) {
|
|
return this;
|
|
}
|
|
|
|
@Override // com.google.common.collect.ContiguousSet, java.util.AbstractCollection
|
|
public String toString() {
|
|
return "[]";
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSortedSet, com.google.common.collect.ImmutableSet, com.google.common.collect.ImmutableCollection
|
|
Object writeReplace() {
|
|
return new SerializedForm(this.domain);
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSortedSet, java.util.NavigableSet
|
|
public UnmodifiableIterator<C> descendingIterator() {
|
|
return Iterators.a();
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSortedSet, java.util.SortedSet
|
|
public C first() {
|
|
throw new NoSuchElementException();
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSortedSet, com.google.common.collect.ImmutableSet, com.google.common.collect.ImmutableCollection, java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set, java.util.NavigableSet
|
|
public UnmodifiableIterator<C> iterator() {
|
|
return Iterators.a();
|
|
}
|
|
|
|
@Override // com.google.common.collect.ImmutableSortedSet, java.util.SortedSet
|
|
public C last() {
|
|
throw new NoSuchElementException();
|
|
}
|
|
|
|
@Override // com.google.common.collect.ContiguousSet
|
|
public Range<C> range(BoundType boundType, BoundType boundType2) {
|
|
throw new NoSuchElementException();
|
|
}
|
|
}
|