private final class ImmutableRangeSet.ComplementRanges extends ImmutableList<Range<C>>
ImmutableList.Builder<E>, ImmutableList.SerializedForm, ImmutableList.SubList
ImmutableCollection.ArrayBasedBuilder<E>
Modifier and Type | Field and Description |
---|---|
private boolean |
positiveBoundedAbove |
private boolean |
positiveBoundedBelow |
private int |
size |
Constructor and Description |
---|
ComplementRanges() |
Modifier and Type | Method and Description |
---|---|
Range<C> |
get(int index) |
(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. |
int |
size() |
add, addAll, asImmutableList, asImmutableList, asList, builder, contains, copyIntoArray, copyOf, copyOf, copyOf, copyOf, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, of, of, of, of, of, of, of, of, of, of, of, of, of, remove, reverse, set, subList, subListUnchecked, writeReplace
add, addAll, clear, remove, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private final boolean positiveBoundedBelow
private final boolean positiveBoundedAbove
private final int size
public int size()
boolean isPartialView()
ImmutableCollection
true
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<Range<C extends java.lang.Comparable>>