Package com.google.common.collect
Class ImmutableRangeSet.AsSet
java.lang.Object
java.util.AbstractCollection<E>
com.google.common.collect.ImmutableCollection<E>
com.google.common.collect.ImmutableSet<E>
com.google.common.collect.ImmutableSet.CachingAsList<E>
com.google.common.collect.ImmutableSortedSetFauxverideShim<E>
com.google.common.collect.ImmutableSortedSet<C>
com.google.common.collect.ImmutableRangeSet.AsSet
- All Implemented Interfaces:
SortedIterable<C>,Serializable,Iterable<C>,Collection<C>,NavigableSet<C>,Set<C>,SortedSet<C>
- Enclosing class:
- ImmutableRangeSet<C extends Comparable>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSortedSet
ImmutableSortedSet.Builder<E>Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSet
ImmutableSet.CachingAsList<E>, ImmutableSet.Indexed<E> -
Field Summary
FieldsFields inherited from class com.google.common.collect.ImmutableSortedSet
comparator, descendingSet, SPLITERATOR_CHARACTERISTICSFields inherited from class com.google.common.collect.ImmutableSet
MAX_TABLE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean(package private) ImmutableSortedSet<C>(package private) ImmutableSortedSet<C>headSetImpl(C toElement, boolean inclusive) (package private) intReturns the position of an element within the set, or -1 if not present.(package private) booleanReturnstrueif this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods.iterator()Returns an unmodifiable iterator across the elements in this collection.intsize()(package private) ImmutableSortedSet<C>(package private) ImmutableSortedSet<C>subSetImpl(C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) (package private) ImmutableSortedSet<C>tailSetImpl(C fromElement, boolean inclusive) toString()(package private) ObjectMethods inherited from class com.google.common.collect.ImmutableSortedSet
ceiling, comparator, construct, copyOf, copyOf, copyOf, copyOf, copyOf, copyOf, copyOf, copyOfSorted, descendingSet, emptySet, first, floor, headSet, headSet, higher, last, lower, naturalOrder, of, of, of, of, of, of, of, orderedBy, pollFirst, pollLast, reverseOrder, spliterator, subSet, subSet, tailSet, tailSet, toImmutableSortedSet, unsafeCompare, unsafeCompareMethods inherited from class com.google.common.collect.ImmutableSortedSetFauxverideShim
builder, builderWithExpectedSize, copyOf, of, of, of, of, of, of, toImmutableSetMethods inherited from class com.google.common.collect.ImmutableSet.CachingAsList
asList, createAsListMethods inherited from class com.google.common.collect.ImmutableSet
chooseTableSize, equals, hashCode, isHashCodeFastMethods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, copyIntoArray, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArrayMethods inherited from class java.util.AbstractCollection
containsAll, isEmptyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
domain
-
size
-
-
Constructor Details
-
AsSet
AsSet(DiscreteDomain<C> domain)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<C extends Comparable>- Specified by:
sizein interfaceSet<C extends Comparable>- Specified by:
sizein classAbstractCollection<C extends Comparable>
-
iterator
Description copied from class:ImmutableCollectionReturns an unmodifiable iterator across the elements in this collection.- Specified by:
iteratorin interfaceCollection<C extends Comparable>- Specified by:
iteratorin interfaceIterable<C extends Comparable>- Specified by:
iteratorin interfaceNavigableSet<C extends Comparable>- Specified by:
iteratorin interfaceSet<C extends Comparable>- Specified by:
iteratorin interfaceSortedIterable<C extends Comparable>- Specified by:
iteratorin classImmutableSortedSet<C extends Comparable>
-
descendingIterator
- Specified by:
descendingIteratorin interfaceNavigableSet<C extends Comparable>- Specified by:
descendingIteratorin classImmutableSortedSet<C extends Comparable>
-
subSet
-
headSetImpl
- Specified by:
headSetImplin classImmutableSortedSet<C extends Comparable>
-
subSetImpl
ImmutableSortedSet<C> subSetImpl(C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) - Specified by:
subSetImplin classImmutableSortedSet<C extends Comparable>
-
tailSetImpl
- Specified by:
tailSetImplin classImmutableSortedSet<C extends Comparable>
-
contains
- Specified by:
containsin interfaceCollection<C extends Comparable>- Specified by:
containsin interfaceSet<C extends Comparable>- Specified by:
containsin classImmutableCollection<C extends Comparable>
-
indexOf
Description copied from class:ImmutableSortedSetReturns the position of an element within the set, or -1 if not present.- Specified by:
indexOfin classImmutableSortedSet<C extends Comparable>
-
createDescendingSet
ImmutableSortedSet<C> createDescendingSet()- Specified by:
createDescendingSetin classImmutableSortedSet<C extends Comparable>
-
isPartialView
boolean isPartialView()Description copied from class:ImmutableCollectionReturnstrueif 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 whethercopyOfimplementations should make an explicit copy to avoid memory leaks.- Specified by:
isPartialViewin classImmutableCollection<C extends Comparable>
-
toString
- Overrides:
toStringin classAbstractCollection<C extends Comparable>
-
writeReplace
Object writeReplace()- Overrides:
writeReplacein classImmutableSortedSet<C extends Comparable>
-