Package it.unimi.dsi.fastutil.objects
Class ObjectLists.SynchronizedRandomAccessList<K>
- java.lang.Object
-
- it.unimi.dsi.fastutil.objects.ObjectCollections.SynchronizedCollection<K>
-
- it.unimi.dsi.fastutil.objects.ObjectLists.SynchronizedList<K>
-
- it.unimi.dsi.fastutil.objects.ObjectLists.SynchronizedRandomAccessList<K>
-
- All Implemented Interfaces:
ObjectCollection<K>
,ObjectIterable<K>
,ObjectList<K>
,Serializable
,Comparable<List<? extends K>>
,Iterable<K>
,Collection<K>
,List<K>
,RandomAccess
- Enclosing class:
- ObjectLists
public static class ObjectLists.SynchronizedRandomAccessList<K> extends ObjectLists.SynchronizedList<K> implements RandomAccess, Serializable
A synchronized wrapper class for random-access lists.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectList<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.ObjectLists.SynchronizedList
add, addAll, addElements, addElements, compareTo, equals, get, getElements, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeElements, set, setElements, setElements, setElements, size, sort, unstableSort
-
Methods inherited from class it.unimi.dsi.fastutil.objects.ObjectCollections.SynchronizedCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
subList
public ObjectList<K> subList(int from, int to)
Description copied from interface:ObjectList
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<K>
- Specified by:
subList
in interfaceObjectList<K>
- Overrides:
subList
in classObjectLists.SynchronizedList<K>
- See Also:
List.subList(int,int)
-
-