Package it.unimi.dsi.fastutil.shorts
Class ShortLists.UnmodifiableRandomAccessList
- java.lang.Object
-
- it.unimi.dsi.fastutil.shorts.ShortCollections.UnmodifiableCollection
-
- it.unimi.dsi.fastutil.shorts.ShortLists.UnmodifiableList
-
- it.unimi.dsi.fastutil.shorts.ShortLists.UnmodifiableRandomAccessList
-
- All Implemented Interfaces:
ShortCollection
,ShortIterable
,ShortList
,Serializable
,Comparable<List<? extends Short>>
,Iterable<Short>
,Collection<Short>
,List<Short>
,RandomAccess
- Enclosing class:
- ShortLists
public static class ShortLists.UnmodifiableRandomAccessList extends ShortLists.UnmodifiableList implements RandomAccess, Serializable
An unmodifiable wrapper class for random-access lists.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShortList
subList(int from, int to)
Returns a type-specific view of the portion of this list from the indexfrom
, inclusive, to the indexto
, exclusive.-
Methods inherited from class it.unimi.dsi.fastutil.shorts.ShortLists.UnmodifiableList
add, add, addAll, addAll, addAll, addAll, addElements, addElements, compareTo, equals, get, getElements, getShort, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, removeElements, removeShort, set, set, setElements, setElements, setElements, size, sort, sort, unstableSort, unstableSort
-
Methods inherited from class it.unimi.dsi.fastutil.shorts.ShortCollections.UnmodifiableCollection
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, isEmpty, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toShortArray, toShortArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
addAll, clear, containsAll, isEmpty, removeAll, replaceAll, retainAll, size, spliterator, toArray, toArray
-
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortCollection
addAll, contains, containsAll, rem, removeAll, removeIf, removeIf, retainAll, toArray, toShortArray, toShortArray
-
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortIterable
forEach, forEach
-
-
-
-
Method Detail
-
subList
public ShortList subList(int from, int to)
Description copied from interface:ShortList
Returns a type-specific view of the portion of this list from the indexfrom
, inclusive, to the indexto
, exclusive.Note that this specification strengthens the one given in
List.subList(int,int)
.- Specified by:
subList
in interfaceList<Short>
- Specified by:
subList
in interfaceShortList
- Overrides:
subList
in classShortLists.UnmodifiableList
- See Also:
List.subList(int,int)
-
-