Class IntRange
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<Integer>
-
- net.automatalib.common.util.collection.IntRange
-
- All Implemented Interfaces:
Iterable<Integer>,Collection<Integer>,List<Integer>,RandomAccess,ArrayWritable<Integer>
public final class IntRange extends AbstractList<Integer> implements ArrayWritable<Integer>, RandomAccess
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(@Nullable Object o)Integerget(int index)intindexOf(int i)intindexOf(@Nullable Object o)intintGet(int index)IntRangeIteratoriterator()intlastIndexOf(@Nullable Object o)IntRangeIteratorlistIterator()IntRangeIteratorlistIterator(int index)intsize()voidwriteToArray(int offset, @Nullable Object[] array, int tgtOfs, int num)-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, 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
-
Methods inherited from interface java.util.List
addAll, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
get
public Integer get(int index)
-
intGet
public int intGet(int index)
-
contains
public boolean contains(@Nullable Object o)
- Specified by:
containsin interfaceCollection<Integer>- Specified by:
containsin interfaceList<Integer>- Overrides:
containsin classAbstractCollection<Integer>
-
indexOf
public int indexOf(int i)
-
lastIndexOf
public int lastIndexOf(@Nullable Object o)
- Specified by:
lastIndexOfin interfaceList<Integer>- Overrides:
lastIndexOfin classAbstractList<Integer>
-
iterator
public IntRangeIterator iterator()
-
listIterator
public IntRangeIterator listIterator()
- Specified by:
listIteratorin interfaceList<Integer>- Overrides:
listIteratorin classAbstractList<Integer>
-
listIterator
public IntRangeIterator listIterator(int index)
- Specified by:
listIteratorin interfaceList<Integer>- Overrides:
listIteratorin classAbstractList<Integer>
-
size
public int size()
- Specified by:
sizein interfaceArrayWritable<Integer>- Specified by:
sizein interfaceCollection<Integer>- Specified by:
sizein interfaceList<Integer>- Specified by:
sizein classAbstractCollection<Integer>
-
writeToArray
public void writeToArray(int offset, @Nullable Object[] array, int tgtOfs, int num)- Specified by:
writeToArrayin interfaceArrayWritable<Integer>
-
-