Class LongArrayList.SubList
- All Implemented Interfaces:
LongCollection,LongIterable,LongList,LongStack,Stack<Long>,Serializable,Comparable<List<? extends Long>>,Iterable<Long>,Collection<Long>,List<Long>,RandomAccess,SequencedCollection<Long>
- Enclosing class:
LongArrayList
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLongList
AbstractLongList.LongRandomAccessSubList, AbstractLongList.LongSubList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares this list to another object.booleanlonggetLong(int i) Returns the element at the specified position in this list.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.longs.AbstractLongList.LongRandomAccessSubList
subListMethods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongList.LongSubList
add, add, addAll, addAll, addAll, addElements, getElements, rem, removeElements, removeLong, set, setElements, sizeMethods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongList
addAll, addAll, addElements, clear, contains, forEach, hashCode, indexOf, iterator, lastIndexOf, listIterator, peekLong, popLong, push, replaceAll, size, toArray, toLongArray, topLong, toStringMethods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongCollection
add, contains, containsAll, containsAll, forEach, remove, removeAll, removeAll, removeIf, retainAll, retainAll, toLongArrayMethods inherited from class java.util.AbstractCollection
isEmpty, toArray, toArrayMethods inherited from interface java.util.Collection
toArrayMethods inherited from interface java.util.List
addFirst, addLast, containsAll, getFirst, getLast, isEmpty, removeAll, removeFirst, removeLast, retainAll, reversed, toArray, toArrayMethods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection
containsAll, longIterator, longParallelStream, longSpliterator, longStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toLongArrayMethods inherited from interface it.unimi.dsi.fastutil.longs.LongIterable
forEach, forEachMethods inherited from interface it.unimi.dsi.fastutil.longs.LongList
add, add, addAll, contains, get, indexOf, lastIndexOf, remove, remove, replaceAll, replaceAll, set, setElements, setElements, sort, sort, unstableSort, unstableSort
-
Constructor Details
-
SubList
public SubList(int from, int to)
-
-
Method Details
-
getLong
public long getLong(int i) Description copied from interface:LongListReturns the element at the specified position in this list.- Specified by:
getLongin interfaceLongList- Overrides:
getLongin classAbstractLongList.LongSubList- See Also:
-
listIterator
Description copied from class:AbstractLongListReturns a type-specific list iterator on the list starting at a given index.- Specified by:
listIteratorin interfaceList<Long>- Specified by:
listIteratorin interfaceLongList- Overrides:
listIteratorin classAbstractLongList.LongSubList- See Also:
-
spliterator
Description copied from interface:LongCollectionReturns 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<Long>- Specified by:
spliteratorin interfaceIterable<Long>- Specified by:
spliteratorin interfaceList<Long>- Specified by:
spliteratorin interfaceLongCollection- Specified by:
spliteratorin interfaceLongIterable- Specified by:
spliteratorin interfaceLongList- Overrides:
spliteratorin classAbstractLongList.LongSubList- Returns:
- a type-specific spliterator on the elements of this collection.
-
equals
- Specified by:
equalsin interfaceCollection<Long>- Specified by:
equalsin interfaceList<Long>- Overrides:
equalsin classAbstractLongList
-
compareTo
Description copied from class:AbstractLongListCompares 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 Long>>- Overrides:
compareToin classAbstractLongList- 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.
-