Class DoubleArrayList.SubList
- All Implemented Interfaces:
DoubleCollection, DoubleIterable, DoubleList, DoubleStack, Stack<Double>, Serializable, Comparable<List<? extends Double>>, Iterable<Double>, Collection<Double>, List<Double>, RandomAccess, SequencedCollection<Double>
- Enclosing class:
DoubleArrayList
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractDoubleList
AbstractDoubleList.DoubleRandomAccessSubList, AbstractDoubleList.DoubleSubList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares this list to another object.booleandoublegetDouble(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 AbstractDoubleList.DoubleRandomAccessSubList
subListMethods inherited from class AbstractDoubleList.DoubleSubList
add, add, addAll, addAll, addAll, addElements, getElements, rem, removeDouble, removeElements, set, setElements, sizeMethods inherited from class AbstractDoubleList
addAll, addAll, addElements, clear, contains, forEach, hashCode, indexOf, iterator, lastIndexOf, listIterator, peekDouble, popDouble, push, replaceAll, size, toArray, toDoubleArray, topDouble, toStringMethods inherited from class AbstractDoubleCollection
add, contains, containsAll, containsAll, forEach, remove, removeAll, removeAll, removeIf, retainAll, retainAll, toDoubleArrayMethods inherited from class AbstractCollection
isEmpty, toArray, toArrayMethods inherited from interface Collection
toArrayMethods inherited from interface DoubleCollection
containsAll, doubleIterator, doubleParallelStream, doubleSpliterator, doubleStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toDoubleArrayMethods inherited from interface DoubleIterable
forEach, forEachMethods inherited from interface DoubleList
add, add, addAll, contains, get, indexOf, lastIndexOf, remove, remove, replaceAll, replaceAll, set, setElements, setElements, sort, sort, unstableSort, unstableSortMethods inherited from interface DoubleStack
peek, pop, push, topMethods inherited from interface List
addFirst, addLast, containsAll, getFirst, getLast, isEmpty, removeAll, removeFirst, removeLast, retainAll, reversed, toArray, toArray
-
Constructor Details
-
SubList
public SubList(int from, int to)
-
-
Method Details
-
getDouble
public double getDouble(int i) Description copied from interface:DoubleListReturns the element at the specified position in this list.- Specified by:
getDoublein interfaceDoubleList- Overrides:
getDoublein classAbstractDoubleList.DoubleSubList- See Also:
-
listIterator
Description copied from class:AbstractDoubleListReturns a type-specific list iterator on the list starting at a given index.- Specified by:
listIteratorin interfaceDoubleList- Specified by:
listIteratorin interfaceList<Double>- Overrides:
listIteratorin classAbstractDoubleList.DoubleSubList- See Also:
-
spliterator
Description copied from interface:DoubleCollectionReturns 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<Double>- Specified by:
spliteratorin interfaceDoubleCollection- Specified by:
spliteratorin interfaceDoubleIterable- Specified by:
spliteratorin interfaceDoubleList- Specified by:
spliteratorin interfaceIterable<Double>- Specified by:
spliteratorin interfaceList<Double>- Overrides:
spliteratorin classAbstractDoubleList.DoubleSubList- Returns:
- a type-specific spliterator on the elements of this collection.
-
equals
- Specified by:
equalsin interfaceCollection<Double>- Specified by:
equalsin interfaceList<Double>- Overrides:
equalsin classAbstractDoubleList
-
compareTo
Description copied from class:AbstractDoubleListCompares 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 Double>>- Overrides:
compareToin classAbstractDoubleList- 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.
-