private final class ImmutableRangeSet.ComplementRanges extends ImmutableList<Range<C>>
ImmutableList.Builder<E>, ImmutableList.SerializedForm, ImmutableList.SubList| Modifier and Type | Field and Description |
|---|---|
private boolean |
positiveBoundedAbove |
private boolean |
positiveBoundedBelow |
private int |
size |
SPLITERATOR_CHARACTERISTICS| 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, 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, writeReplaceadd, addAll, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitprivate final boolean positiveBoundedBelow
private final boolean positiveBoundedAbove
private final int size
public int size()
boolean isPartialView()
ImmutableCollectiontrue 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>>