Class IntArrayList.SubList
- All Implemented Interfaces:
IntCollection, IntIterable, IntList, IntStack, Stack<Integer>, Serializable, Comparable<List<? extends Integer>>, Iterable<Integer>, Collection<Integer>, List<Integer>, RandomAccess, SequencedCollection<Integer>
- Enclosing class:
IntArrayList
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractIntList
AbstractIntList.IntRandomAccessSubList, AbstractIntList.IntSubList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares this list to another object.booleanintgetInt(int i) Returns the element at the specified position in this list.listIterator(int index) Returns a type-specific list iterator on the list starting at a given index.Returns a type-specific spliterator on the elements of this collection.Methods inherited from class AbstractIntList.IntRandomAccessSubList
subListMethods inherited from class AbstractIntList.IntSubList
add, add, addAll, addAll, addAll, addElements, getElements, rem, removeElements, removeInt, set, setElements, sizeMethods inherited from class AbstractIntList
addAll, addAll, addElements, clear, contains, forEach, hashCode, indexOf, iterator, lastIndexOf, listIterator, peekInt, popInt, push, replaceAll, size, toArray, toIntArray, topInt, toStringMethods inherited from class AbstractIntCollection
add, contains, containsAll, containsAll, forEach, remove, removeAll, removeAll, removeIf, retainAll, retainAll, toIntArrayMethods inherited from class AbstractCollection
isEmpty, toArray, toArrayMethods inherited from interface Collection
toArrayMethods inherited from interface IntCollection
containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toIntArrayMethods inherited from interface IntIterable
forEach, forEachMethods inherited from interface IntList
add, add, addAll, contains, get, indexOf, lastIndexOf, remove, remove, replaceAll, replaceAll, set, setElements, setElements, sort, sort, unstableSort, unstableSortMethods inherited from interface List
addFirst, addLast, containsAll, getFirst, getLast, isEmpty, removeAll, removeFirst, removeLast, retainAll, reversed, toArray, toArray
-
Constructor Details
-
SubList
public SubList(int from, int to)
-
-
Method Details
-
getInt
public int getInt(int i) Description copied from interface:IntListReturns the element at the specified position in this list.- Specified by:
getIntin interfaceIntList- Overrides:
getIntin classAbstractIntList.IntSubList- See Also:
-
listIterator
Description copied from class:AbstractIntListReturns a type-specific list iterator on the list starting at a given index.- Specified by:
listIteratorin interfaceIntList- Specified by:
listIteratorin interfaceList<Integer>- Overrides:
listIteratorin classAbstractIntList.IntSubList- See Also:
-
spliterator
Description copied from interface:IntCollectionReturns a type-specific spliterator on the elements of this collection.See
Collection.spliterator()for more documentation on the requirements of the returned spliterator.- Specified by:
spliteratorin interfaceCollection<Integer>- Specified by:
spliteratorin interfaceIntCollection- Specified by:
spliteratorin interfaceIntIterable- Specified by:
spliteratorin interfaceIntList- Specified by:
spliteratorin interfaceIterable<Integer>- Specified by:
spliteratorin interfaceList<Integer>- Overrides:
spliteratorin classAbstractIntList.IntSubList- Returns:
- a type-specific spliterator on the elements of this collection.
-
equals
- Specified by:
equalsin interfaceCollection<Integer>- Specified by:
equalsin interfaceList<Integer>- Overrides:
equalsin classAbstractIntList
-
compareTo
Description copied from class:AbstractIntListCompares this list to another object. If the argument is aList, this method performs a lexicographical comparison; otherwise, it throws aClassCastException.- Specified by:
compareToin interfaceComparable<List<? extends Integer>>- Overrides:
compareToin classAbstractIntList- Parameters:
l- a list.- Returns:
- if the argument is a
List, a negative integer, zero, or a positive integer as this list is lexicographically less than, equal to, or greater than the argument.
-