- All Superinterfaces:
Collection<Integer>,IntSequencedCollection,Iterable<Integer>,List<Integer>,SequencedCollection<Integer>
- All Known Implementing Classes:
IntArrayList
Interface for a
List with a primitive integer data elements.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanvoidaddAsInt(int e) voidaddAsInt(int index, int e) default voiddefault voidaddFirstAsInt(int e) default voiddefault voidaddLastAsInt(int e) intgetAsInt(int index) default IntegergetFirst()default IntegergetLast()default intintindexOfAsInt(int o) default booleanisEmpty()default intintlastIndexOfAsInt(int o) intremoveAtAsInt(int index) Removes the item at the specified index from this list.default Integerdefault intdefault IntegerMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.jhotdraw8.collection.primitive.IntSequencedCollection
addLastAllAsInt, addLastAllAsInt, getFirstAsInt, getLastAsInt, removeLastAsInt
-
Method Details
-
add
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Integer>
-
lastIndexOfAsInt
int lastIndexOfAsInt(int o) - See Also:
-
indexOfAsInt
int indexOfAsInt(int o) - See Also:
-
addAsInt
void addAsInt(int e) - See Also:
-
addAsInt
void addAsInt(int index, int e) - See Also:
-
getAsInt
int getAsInt(int index) - See Also:
-
addFirstAsInt
default void addFirstAsInt(int e) - Specified by:
addFirstAsIntin interfaceIntSequencedCollection
-
addLastAsInt
default void addLastAsInt(int e) - Specified by:
addLastAsIntin interfaceIntSequencedCollection
-
removeAtAsInt
int removeAtAsInt(int index) Removes the item at the specified index from this list.- Parameters:
index- an index- Returns:
- the removed item
-
removeFirstAsInt
default int removeFirstAsInt()- Specified by:
removeFirstAsIntin interfaceIntSequencedCollection
-
isEmpty
default boolean isEmpty() -
removeFirst
- Specified by:
removeFirstin interfaceIntSequencedCollection- Specified by:
removeFirstin interfaceList<Integer>- Specified by:
removeFirstin interfaceSequencedCollection<Integer>
-
removeLast
- Specified by:
removeLastin interfaceIntSequencedCollection- Specified by:
removeLastin interfaceList<Integer>- Specified by:
removeLastin interfaceSequencedCollection<Integer>
-
getFirst
- Specified by:
getFirstin interfaceIntSequencedCollection- Specified by:
getFirstin interfaceList<Integer>- Specified by:
getFirstin interfaceSequencedCollection<Integer>
-
getLast
- Specified by:
getLastin interfaceIntSequencedCollection- Specified by:
getLastin interfaceList<Integer>- Specified by:
getLastin interfaceSequencedCollection<Integer>
-
addFirst
- Specified by:
addFirstin interfaceIntSequencedCollection- Specified by:
addFirstin interfaceList<Integer>- Specified by:
addFirstin interfaceSequencedCollection<Integer>
-
addLast
- Specified by:
addLastin interfaceIntSequencedCollection- Specified by:
addLastin interfaceList<Integer>- Specified by:
addLastin interfaceSequencedCollection<Integer>
-