Package com.google.common.collect
Class ImmutableRangeSet.ComplementRanges
java.lang.Object
java.util.AbstractCollection<Range<C>>
com.google.common.collect.ImmutableCollection<Range<C>>
com.google.common.collect.ImmutableList<Range<C>>
com.google.common.collect.ImmutableRangeSet.ComplementRanges
- All Implemented Interfaces:
Serializable
,Iterable<Range<C>>
,Collection<Range<C>>
,List<Range<C>>
,RandomAccess
,SequencedCollection<Range<C>>
- Enclosing class:
ImmutableRangeSet<C extends Comparable>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableList
ImmutableList.Builder<E>, ImmutableList.SerializedForm, ImmutableList.SubList
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final boolean
private final int
Fields inherited from class com.google.common.collect.ImmutableCollection
SPLITERATOR_CHARACTERISTICS
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.collect.ImmutableList
add, addAll, asImmutableList, asImmutableList, asList, builder, builderWithExpectedSize, contains, copyIntoArray, copyOf, copyOf, copyOf, copyOf, equals, forEach, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, of, of, of, of, of, of, of, of, of, of, of, of, of, remove, replaceAll, reverse, set, sort, sortedCopyOf, sortedCopyOf, spliterator, subList, subListUnchecked, toImmutableList
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArray
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, 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
-
Field Details
-
positiveBoundedBelow
private final boolean positiveBoundedBelow -
positiveBoundedAbove
private final boolean positiveBoundedAbove -
size
private final int size
-
-
Constructor Details
-
ComplementRanges
ComplementRanges()
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceCollection<Range<C extends Comparable>>
- Specified by:
size
in interfaceList<Range<C extends Comparable>>
- Specified by:
size
in classAbstractCollection<Range<C extends Comparable>>
-
get
-
isPartialView
boolean isPartialView()Description copied from class:ImmutableCollection
Returnstrue
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 whethercopyOf
implementations should make an explicit copy to avoid memory leaks.- Specified by:
isPartialView
in classImmutableCollection<Range<C extends Comparable>>
-
writeReplace
Object writeReplace()- Overrides:
writeReplace
in classImmutableList<Range<C extends Comparable>>
-