- All Superinterfaces:
Collection<Double>,DoubleSequencedCollection,Iterable<Double>,List<Double>,SequencedCollection<Double>
- All Known Implementing Classes:
DoubleArrayList
Interface for a
List with a primitive integer data elements.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanvoidaddAsDouble(double e) voidaddAsDouble(int index, double e) default voiddefault voidaddFirstAsDouble(double e) default voiddefault voidaddLastAsDouble(double e) doublegetAsDouble(int index) default DoublegetFirst()default DoublegetLast()default intintindexOfAsDouble(double o) default booleanisEmpty()default intintlastIndexOfAsDouble(double o) doubleremoveAtAsDouble(int index) Removes the item at the specified index from this list.default Doubledefault doubledefault DoubleMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.jhotdraw8.collection.primitive.DoubleSequencedCollection
addLastAllAsDouble, addLastAllAsDouble, getFirstAsDouble, getLastAsDouble, removeLastAsDouble
-
Method Details
-
add
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Double>
-
lastIndexOfAsDouble
int lastIndexOfAsDouble(double o) - See Also:
-
indexOfAsDouble
int indexOfAsDouble(double o) - See Also:
-
addAsDouble
void addAsDouble(double e) - See Also:
-
addAsDouble
void addAsDouble(int index, double e) - See Also:
-
getAsDouble
double getAsDouble(int index) - See Also:
-
addFirstAsDouble
default void addFirstAsDouble(double e) - Specified by:
addFirstAsDoublein interfaceDoubleSequencedCollection
-
addLastAsDouble
default void addLastAsDouble(double e) - Specified by:
addLastAsDoublein interfaceDoubleSequencedCollection
-
removeAtAsDouble
double removeAtAsDouble(int index) Removes the item at the specified index from this list.- Parameters:
index- an index- Returns:
- the removed item
-
removeFirstAsDouble
default double removeFirstAsDouble()- Specified by:
removeFirstAsDoublein interfaceDoubleSequencedCollection
-
isEmpty
default boolean isEmpty() -
addFirst
- Specified by:
addFirstin interfaceDoubleSequencedCollection- Specified by:
addFirstin interfaceList<Double>- Specified by:
addFirstin interfaceSequencedCollection<Double>
-
addLast
- Specified by:
addLastin interfaceDoubleSequencedCollection- Specified by:
addLastin interfaceList<Double>- Specified by:
addLastin interfaceSequencedCollection<Double>
-
getFirst
- Specified by:
getFirstin interfaceDoubleSequencedCollection- Specified by:
getFirstin interfaceList<Double>- Specified by:
getFirstin interfaceSequencedCollection<Double>
-
getLast
- Specified by:
getLastin interfaceDoubleSequencedCollection- Specified by:
getLastin interfaceList<Double>- Specified by:
getLastin interfaceSequencedCollection<Double>
-
removeFirst
- Specified by:
removeFirstin interfaceDoubleSequencedCollection- Specified by:
removeFirstin interfaceList<Double>- Specified by:
removeFirstin interfaceSequencedCollection<Double>
-
removeLast
- Specified by:
removeLastin interfaceDoubleSequencedCollection- Specified by:
removeLastin interfaceList<Double>- Specified by:
removeLastin interfaceSequencedCollection<Double>
-