@GwtCompatible(serializable=true, emulated=true) final class EmptyImmutableSet extends ImmutableSet<java.lang.Object>
ImmutableSet.Builder<E>ImmutableCollection.ArrayBasedBuilder<E>| Modifier and Type | Field and Description |
|---|---|
(package private) static EmptyImmutableSet |
INSTANCE |
private static long |
serialVersionUID |
MAX_TABLE_SIZE| Modifier | Constructor and Description |
|---|---|
private |
EmptyImmutableSet() |
| Modifier and Type | Method and Description |
|---|---|
ImmutableList<java.lang.Object> |
asList()
Returns a list view of the collection.
|
boolean |
contains(java.lang.Object target) |
boolean |
containsAll(java.util.Collection<?> targets) |
(package private) int |
copyIntoArray(java.lang.Object[] dst,
int offset)
Copies the contents of this immutable collection into the specified array at the specified
offset.
|
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
boolean |
isEmpty() |
(package private) boolean |
isHashCodeFast()
Returns
true if the hashCode() method runs quickly. |
(package private) boolean |
isPartialView()
Returns
true if this immutable collection's implementation contains references to
user-created objects that aren't accessible via this collection's methods. |
UnmodifiableIterator<java.lang.Object> |
iterator()
Returns an unmodifiable iterator across the elements in this collection.
|
(package private) java.lang.Object |
readResolve() |
int |
size() |
java.lang.String |
toString() |
builder, chooseTableSize, copyOf, copyOf, copyOf, copyOf, of, of, of, of, of, of, of, writeReplaceadd, addAll, clear, createAsList, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitstatic final EmptyImmutableSet INSTANCE
private static final long serialVersionUID
public int size()
size in interface java.util.Collection<java.lang.Object>size in interface java.util.Set<java.lang.Object>size in class java.util.AbstractCollection<java.lang.Object>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Object>isEmpty in interface java.util.Set<java.lang.Object>isEmpty in class java.util.AbstractCollection<java.lang.Object>public boolean contains(@Nullable
java.lang.Object target)
contains in interface java.util.Collection<java.lang.Object>contains in interface java.util.Set<java.lang.Object>contains in class ImmutableCollection<java.lang.Object>public boolean containsAll(java.util.Collection<?> targets)
containsAll in interface java.util.Collection<java.lang.Object>containsAll in interface java.util.Set<java.lang.Object>containsAll in class java.util.AbstractCollection<java.lang.Object>public UnmodifiableIterator<java.lang.Object> iterator()
ImmutableCollectioniterator in interface java.lang.Iterable<java.lang.Object>iterator in interface java.util.Collection<java.lang.Object>iterator in interface java.util.Set<java.lang.Object>iterator in class ImmutableSet<java.lang.Object>boolean isPartialView()
ImmutableCollectiontrue if this immutable collection's implementation contains references to
user-created objects that aren't accessible via this collection's methods. This is generally
used to determine whether copyOf implementations should make an explicit copy to avoid
memory leaks.isPartialView in class ImmutableCollection<java.lang.Object>int copyIntoArray(java.lang.Object[] dst,
int offset)
ImmutableCollectionoffset + size().copyIntoArray in class ImmutableCollection<java.lang.Object>public ImmutableList<java.lang.Object> asList()
ImmutableCollectionasList in class ImmutableCollection<java.lang.Object>public boolean equals(@Nullable
java.lang.Object object)
equals in interface java.util.Collection<java.lang.Object>equals in interface java.util.Set<java.lang.Object>equals in class ImmutableSet<java.lang.Object>public final int hashCode()
hashCode in interface java.util.Collection<java.lang.Object>hashCode in interface java.util.Set<java.lang.Object>hashCode in class ImmutableSet<java.lang.Object>boolean isHashCodeFast()
ImmutableSettrue if the hashCode() method runs quickly.isHashCodeFast in class ImmutableSet<java.lang.Object>public java.lang.String toString()
toString in class java.util.AbstractCollection<java.lang.Object>java.lang.Object readResolve()