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
,SequencedCollection<E>
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.SerializedForm
Nested 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 theComparator
by which the elements of this iterable are ordered, orOrdering.natural()
if the elements are ordered by their natural ordering.boolean
(package private) ImmutableSortedSet
<E> int
int
lastIndexOf
(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.(package private) Object
Methods inherited from class com.google.common.collect.RegularImmutableAsList
copyIntoArray, delegateList, forEach, get, internalArray, internalArrayEnd, internalArrayStart, listIterator
Methods inherited from class com.google.common.collect.ImmutableAsList
isEmpty, isPartialView, size
Methods 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, toImmutableList
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, remove, removeAll, removeIf, retainAll, toArray, toArray
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, addAll, addFirst, addLast, clear, containsAll, getFirst, getLast, remove, removeAll, removeFirst, removeLast, retainAll, reversed, toArray, toArray
Methods 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:
delegateCollection
in classRegularImmutableAsList<E>
-
comparator
Description copied from interface:SortedIterable
Returns theComparator
by which the elements of this iterable are ordered, orOrdering.natural()
if the elements are ordered by their natural ordering.- Specified by:
comparator
in interfaceSortedIterable<E>
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<E>
- Overrides:
lastIndexOf
in classImmutableList<E>
-
contains
- Specified by:
contains
in interfaceCollection<E>
- Specified by:
contains
in interfaceList<E>
- Overrides:
contains
in classImmutableAsList<E>
-
subListUnchecked
Description copied from class:ImmutableList
Called by the default implementation ofImmutableList.subList(int, int)
whentoIndex - fromIndex > 1
, after index validation has already been performed.- Overrides:
subListUnchecked
in classImmutableList<E>
-
spliterator
- Specified by:
spliterator
in interfaceCollection<E>
- Specified by:
spliterator
in interfaceIterable<E>
- Specified by:
spliterator
in interfaceList<E>
- Overrides:
spliterator
in classImmutableList<E>
-
writeReplace
Object writeReplace()- Overrides:
writeReplace
in classRegularImmutableAsList<E>
-