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 AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface 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
-