Class ShortArrayList.SubList
- All Implemented Interfaces:
ShortCollection,ShortIterable,ShortList,ShortStack,Stack<Short>,Serializable,Comparable<List<? extends Short>>,Iterable<Short>,Collection<Short>,List<Short>,RandomAccess,SequencedCollection<Short>
- Enclosing class:
ShortArrayList
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortList
AbstractShortList.ShortRandomAccessSubList, AbstractShortList.ShortSubList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares this list to another object.booleanshortgetShort(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 it.unimi.dsi.fastutil.shorts.AbstractShortList.ShortRandomAccessSubList
subListMethods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortList.ShortSubList
add, add, addAll, addAll, addAll, addElements, getElements, rem, removeElements, removeShort, set, setElements, sizeMethods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortList
addAll, addAll, addElements, clear, contains, forEach, hashCode, indexOf, iterator, lastIndexOf, listIterator, peekShort, popShort, push, size, toArray, topShort, toShortArray, toStringMethods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortCollection
add, contains, containsAll, containsAll, remove, removeAll, removeAll, retainAll, retainAll, toShortArrayMethods inherited from class java.util.AbstractCollection
isEmpty, toArray, toArrayMethods inherited from interface java.util.Collection
toArrayMethods inherited from interface java.util.List
addFirst, addLast, containsAll, getFirst, getLast, isEmpty, removeAll, removeFirst, removeLast, retainAll, reversed, toArray, toArrayMethods inherited from interface it.unimi.dsi.fastutil.shorts.ShortCollection
containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toShortArrayMethods inherited from interface it.unimi.dsi.fastutil.shorts.ShortIterable
forEach, forEachMethods inherited from interface it.unimi.dsi.fastutil.shorts.ShortList
add, add, addAll, contains, get, indexOf, lastIndexOf, remove, remove, replaceAll, replaceAll, replaceAll, set, setElements, setElements, sort, sort, unstableSort, unstableSortMethods inherited from interface it.unimi.dsi.fastutil.shorts.ShortStack
peek, pop, push, top
-
Constructor Details
-
SubList
public SubList(int from, int to)
-
-
Method Details
-
getShort
public short getShort(int i) Description copied from interface:ShortListReturns the element at the specified position in this list.- Specified by:
getShortin interfaceShortList- Overrides:
getShortin classAbstractShortList.ShortSubList- See Also:
-
listIterator
Description copied from class:AbstractShortListReturns a type-specific list iterator on the list starting at a given index.- Specified by:
listIteratorin interfaceList<Short>- Specified by:
listIteratorin interfaceShortList- Overrides:
listIteratorin classAbstractShortList.ShortSubList- See Also:
-
spliterator
Description copied from interface:ShortCollectionReturns 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<Short>- Specified by:
spliteratorin interfaceIterable<Short>- Specified by:
spliteratorin interfaceList<Short>- Specified by:
spliteratorin interfaceShortCollection- Specified by:
spliteratorin interfaceShortIterable- Specified by:
spliteratorin interfaceShortList- Overrides:
spliteratorin classAbstractShortList.ShortSubList- Returns:
- a type-specific spliterator on the elements of this collection.
-
equals
- Specified by:
equalsin interfaceCollection<Short>- Specified by:
equalsin interfaceList<Short>- Overrides:
equalsin classAbstractShortList
-
compareTo
Description copied from class:AbstractShortListCompares 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 Short>>- Overrides:
compareToin classAbstractShortList- 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.
-