Class Utils.RangeList
- All Implemented Interfaces:
Iterable<Number>,Collection<Number>,List<Number>,SequencedCollection<Number>
- Enclosing class:
Utils
List representing an int range [a,b]
Both sides are included. Read-only + immutable.
Used for late materialization of ranges.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Constructor Details
-
RangeList
public RangeList(long left, long right)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<Number>- Specified by:
sizein interfaceList<Number>- Specified by:
sizein classAbstractCollection<Number>
-
addAll
- Specified by:
addAllin interfaceCollection<Number>- Specified by:
addAllin interfaceList<Number>- Overrides:
addAllin classAbstractCollection<Number>
-
get
-