Package com.google.common.collect
Class ImmutableSortedAsList<E>
java.lang.Object
java.util.AbstractCollection<E>
com.google.common.collect.ImmutableCollection<E>
com.google.common.collect.ImmutableList<E>
com.google.common.collect.ImmutableAsList<E>
com.google.common.collect.RegularImmutableAsList<E>
com.google.common.collect.ImmutableSortedAsList<E>
- All Implemented Interfaces:
SortedIterable<E>,Serializable,Iterable<E>,Collection<E>,List<E>,RandomAccess
List returned by
ImmutableSortedSet.asList() when the set isn't empty.-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableAsList
ImmutableAsList.SerializedFormNested classes/interfaces inherited from class com.google.common.collect.ImmutableList
ImmutableList.Builder<E>, ImmutableList.SubList -
Field Summary
Fields inherited from class com.google.common.collect.ImmutableCollection
SPLITERATOR_CHARACTERISTICS -
Constructor Summary
ConstructorsConstructorDescriptionImmutableSortedAsList(ImmutableSortedSet<E> backingSet, ImmutableList<E> backingList) -
Method Summary
Modifier and TypeMethodDescriptionComparator<? super E>Returns theComparatorby which the elements of this iterable are ordered, orOrdering.natural()if the elements are ordered by their natural ordering.boolean(package private) ImmutableSortedSet<E>intintlastIndexOf(Object target) (package private) ImmutableList<E>subListUnchecked(int fromIndex, int toIndex) Called by the default implementation ofImmutableList.subList(int, int)whentoIndex - fromIndex > 1, after index validation has already been performed.Methods inherited from class com.google.common.collect.RegularImmutableAsList
copyIntoArray, delegateList, forEach, get, internalArray, internalArrayEnd, internalArrayStart, listIteratorMethods inherited from class com.google.common.collect.ImmutableAsList
isEmpty, isPartialView, size, writeReplaceMethods inherited from class com.google.common.collect.ImmutableList
add, addAll, asImmutableList, asImmutableList, asList, builder, builderWithExpectedSize, copyOf, copyOf, copyOf, copyOf, equals, hashCode, iterator, listIterator, of, of, of, of, of, of, of, of, of, of, of, of, of, remove, replaceAll, reverse, set, sort, sortedCopyOf, sortedCopyOf, subList, toImmutableListMethods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, remove, removeAll, removeIf, retainAll, toArray, toArrayMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, addAll, clear, containsAll, remove, removeAll, retainAll, toArray, toArrayMethods inherited from interface com.google.common.collect.SortedIterable
iterator
-
Constructor Details
-
ImmutableSortedAsList
ImmutableSortedAsList(ImmutableSortedSet<E> backingSet, ImmutableList<E> backingList)
-
-
Method Details
-
delegateCollection
ImmutableSortedSet<E> delegateCollection()- Overrides:
delegateCollectionin classRegularImmutableAsList<E>
-
comparator
Description copied from interface:SortedIterableReturns theComparatorby which the elements of this iterable are ordered, orOrdering.natural()if the elements are ordered by their natural ordering.- Specified by:
comparatorin interfaceSortedIterable<E>
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>- Overrides:
lastIndexOfin classImmutableList<E>
-
contains
- Specified by:
containsin interfaceCollection<E>- Specified by:
containsin interfaceList<E>- Overrides:
containsin classImmutableAsList<E>
-
subListUnchecked
Description copied from class:ImmutableListCalled by the default implementation ofImmutableList.subList(int, int)whentoIndex - fromIndex > 1, after index validation has already been performed.- Overrides:
subListUncheckedin classImmutableList<E>
-
spliterator
- Specified by:
spliteratorin interfaceCollection<E>- Specified by:
spliteratorin interfaceIterable<E>- Specified by:
spliteratorin interfaceList<E>- Overrides:
spliteratorin classImmutableList<E>
-