Package it.unimi.dsi.fastutil.objects
Class ReferenceLists.UnmodifiableRandomAccessList<K>
- java.lang.Object
-
- it.unimi.dsi.fastutil.objects.ReferenceCollections.UnmodifiableCollection<K>
-
- it.unimi.dsi.fastutil.objects.ReferenceLists.UnmodifiableList<K>
-
- it.unimi.dsi.fastutil.objects.ReferenceLists.UnmodifiableRandomAccessList<K>
-
- All Implemented Interfaces:
ObjectIterable<K>
,ReferenceCollection<K>
,ReferenceList<K>
,java.io.Serializable
,java.lang.Iterable<K>
,java.util.Collection<K>
,java.util.List<K>
,java.util.RandomAccess
- Enclosing class:
- ReferenceLists
public static class ReferenceLists.UnmodifiableRandomAccessList<K> extends ReferenceLists.UnmodifiableList<K> implements java.util.RandomAccess, java.io.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 ReferenceList<K>
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.objects.ReferenceLists.UnmodifiableList
add, addAll, addElements, addElements, equals, get, getElements, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeElements, set, size
-
-
-
-
Method Detail
-
subList
public ReferenceList<K> subList(int from, int to)
Description copied from interface:ReferenceList
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 interfacejava.util.List<K>
- Specified by:
subList
in interfaceReferenceList<K>
- Overrides:
subList
in classReferenceLists.UnmodifiableList<K>
- See Also:
List.subList(int,int)
-
-