Package it.unimi.dsi.fastutil.objects
Class ReferenceLists.SynchronizedRandomAccessList<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.ReferenceCollections.SynchronizedCollection<K>
it.unimi.dsi.fastutil.objects.ReferenceLists.SynchronizedList<K>
it.unimi.dsi.fastutil.objects.ReferenceLists.SynchronizedRandomAccessList<K>
- All Implemented Interfaces:
ObjectIterable<K>,ReferenceCollection<K>,ReferenceList<K>,Serializable,Iterable<K>,Collection<K>,List<K>,RandomAccess
- Enclosing class:
- ReferenceLists
public static class ReferenceLists.SynchronizedRandomAccessList<K> extends ReferenceLists.SynchronizedList<K> implements RandomAccess, Serializable
A synchronized wrapper class for random-access lists.
- See Also:
- Serialized Form
-
Method Summary
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.SynchronizedList
add, addAll, addElements, addElements, equals, get, getElements, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeElements, set, setElements, setElements, setElements, size, sort, unstableSortMethods inherited from class it.unimi.dsi.fastutil.objects.ReferenceCollections.SynchronizedCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, spliterator, toArray, toArray
-
Method Details
-
subList
Description copied from interface:ReferenceListReturns 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:
subListin interfaceList<K>- Specified by:
subListin interfaceReferenceList<K>- Overrides:
subListin classReferenceLists.SynchronizedList<K>- See Also:
List.subList(int,int)
-