@GwtCompatible(serializable=true, emulated=true) class EmptyImmutableSortedSet<E> extends ImmutableSortedSet<E>
ImmutableSortedSet.Builder<E>ImmutableCollection.ArrayBasedBuilder<E>comparator, descendingSetMAX_TABLE_SIZE| Constructor and Description |
|---|
EmptyImmutableSortedSet(java.util.Comparator<? super E> comparator) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableList<E> |
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.
|
(package private) ImmutableSortedSet<E> |
createDescendingSet() |
UnmodifiableIterator<E> |
descendingIterator() |
boolean |
equals(java.lang.Object object) |
E |
first() |
int |
hashCode() |
(package private) ImmutableSortedSet<E> |
headSetImpl(E toElement,
boolean inclusive) |
(package private) int |
indexOf(java.lang.Object target)
Returns the position of an element within the set, or -1 if not present.
|
boolean |
isEmpty() |
(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<E> |
iterator()
Returns an unmodifiable iterator across the elements in this collection.
|
E |
last() |
int |
size() |
(package private) ImmutableSortedSet<E> |
subSetImpl(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
(package private) ImmutableSortedSet<E> |
tailSetImpl(E fromElement,
boolean inclusive) |
java.lang.String |
toString() |
ceiling, comparator, construct, copyOf, copyOf, copyOf, copyOf, copyOf, copyOf, copyOf, copyOfSorted, descendingSet, emptySet, floor, headSet, headSet, higher, lower, naturalOrder, of, of, of, of, of, of, of, orderedBy, pollFirst, pollLast, reverseOrder, subSet, subSet, tailSet, tailSet, unsafeCompare, unsafeCompare, writeReplacebuilderchooseTableSize, isHashCodeFastadd, addAll, clear, createAsList, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitEmptyImmutableSortedSet(java.util.Comparator<? super E> comparator)
public int size()
public boolean isEmpty()
public boolean contains(@Nullable
java.lang.Object target)
contains in interface java.util.Collection<E>contains in interface java.util.Set<E>contains in class ImmutableCollection<E>public boolean containsAll(java.util.Collection<?> targets)
public UnmodifiableIterator<E> iterator()
ImmutableCollectioniterator in interface SortedIterable<E>iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface java.util.NavigableSet<E>iterator in interface java.util.Set<E>iterator in class ImmutableSortedSet<E>@GwtIncompatible(value="NavigableSet") public UnmodifiableIterator<E> descendingIterator()
descendingIterator in interface java.util.NavigableSet<E>descendingIterator in class ImmutableSortedSet<E>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<E>public ImmutableList<E> asList()
ImmutableCollectionasList in class ImmutableCollection<E>int copyIntoArray(java.lang.Object[] dst,
int offset)
ImmutableCollectionoffset + size().copyIntoArray in class ImmutableCollection<E>public boolean equals(@Nullable
java.lang.Object object)
equals in interface java.util.Collection<E>equals in interface java.util.Set<E>equals in class ImmutableSet<E>public int hashCode()
hashCode in interface java.util.Collection<E>hashCode in interface java.util.Set<E>hashCode in class ImmutableSet<E>public java.lang.String toString()
toString in class java.util.AbstractCollection<E>public E first()
first in interface java.util.SortedSet<E>first in class ImmutableSortedSet<E>public E last()
last in interface java.util.SortedSet<E>last in class ImmutableSortedSet<E>ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive)
headSetImpl in class ImmutableSortedSet<E>ImmutableSortedSet<E> subSetImpl(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
subSetImpl in class ImmutableSortedSet<E>ImmutableSortedSet<E> tailSetImpl(E fromElement, boolean inclusive)
tailSetImpl in class ImmutableSortedSet<E>int indexOf(@Nullable
java.lang.Object target)
ImmutableSortedSetindexOf in class ImmutableSortedSet<E>ImmutableSortedSet<E> createDescendingSet()
createDescendingSet in class ImmutableSortedSet<E>