Class ObjectArrayList.SubList
java.lang.Object
java.util.AbstractCollection<K>
it.unimi.dsi.fastutil.objects.AbstractObjectCollection<K>
it.unimi.dsi.fastutil.objects.AbstractObjectList<K>
it.unimi.dsi.fastutil.objects.AbstractObjectList.ObjectSubList<K>
it.unimi.dsi.fastutil.objects.AbstractObjectList.ObjectRandomAccessSubList<K>
it.unimi.dsi.fastutil.objects.ObjectArrayList.SubList
- All Implemented Interfaces:
ObjectCollection<K>,ObjectIterable<K>,ObjectList<K>,Stack<K>,Serializable,Comparable<List<? extends K>>,Iterable<K>,Collection<K>,List<K>,RandomAccess,SequencedCollection<K>
- Enclosing class:
ObjectArrayList<K>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectList
AbstractObjectList.ObjectRandomAccessSubList<K>, AbstractObjectList.ObjectSubList<K> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares this list to another object.booleanget(int i) 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.objects.AbstractObjectList.ObjectRandomAccessSubList
subListMethods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectList.ObjectSubList
add, add, addAll, addElements, getElements, remove, removeElements, set, setElements, sizeMethods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectList
addAll, addElements, clear, contains, forEach, hashCode, indexOf, iterator, lastIndexOf, listIterator, peek, pop, push, size, toArray, toArray, top, toStringMethods inherited from class java.util.AbstractCollection
containsAll, isEmpty, remove, removeAll, retainAllMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversedMethods inherited from interface it.unimi.dsi.fastutil.objects.ObjectList
addAll, addAll, setElements, setElements, sort, unstableSort
-
Constructor Details
-
SubList
public SubList(int from, int to)
-
-
Method Details
-
get
-
listIterator
Description copied from class:AbstractObjectListReturns a type-specific list iterator on the list starting at a given index.- Specified by:
listIteratorin interfaceList<K>- Specified by:
listIteratorin interfaceObjectList<K>- Overrides:
listIteratorin classAbstractObjectList.ObjectSubList<K>- See Also:
-
spliterator
Description copied from interface:ObjectCollectionReturns 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<K>- Specified by:
spliteratorin interfaceIterable<K>- Specified by:
spliteratorin interfaceList<K>- Specified by:
spliteratorin interfaceObjectCollection<K>- Specified by:
spliteratorin interfaceObjectIterable<K>- Specified by:
spliteratorin interfaceObjectList<K>- Overrides:
spliteratorin classAbstractObjectList.ObjectSubList<K>- Returns:
- a type-specific spliterator on the elements of this collection.
-
equals
- Specified by:
equalsin interfaceCollection<K>- Specified by:
equalsin interfaceList<K>- Overrides:
equalsin classAbstractObjectList<K>
-
compareTo
Description copied from class:AbstractObjectListCompares 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 K>>- Overrides:
compareToin classAbstractObjectList<K>- 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.
-