- All Superinterfaces:
Collection<Integer>,Deque<Integer>,IntSequencedCollection,Iterable<Integer>,Queue<Integer>,SequencedCollection<Integer>
- All Known Implementing Classes:
IntArrayDeque
Interface for a
Deque with a primitive integer data elements.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault voidvoidaddFirstAsInt(int e) default voidvoidaddLastAsInt(int e) default Integerelement()default IntegergetFirst()intdefault IntegergetLast()intdefault booleandefault booleanofferFirst(Integer integer) default booleandefault @Nullable Integerpeek()default @Nullable Integerdefault @Nullable IntegerpeekLast()default @Nullable Integerpoll()default @Nullable Integerdefault @Nullable IntegerpollLast()default Integerpop()default intpopAsInt()default voiddefault voidpushAsInt(int e) default Integerremove()default booleandefault Integerintdefault booleanbooleanremoveFirstOccurrenceAsInt(int o) default Integerintdefault booleanbooleanremoveLastOccurrenceAsInt(int o) Methods inherited from interface java.util.Collection
clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArrayMethods inherited from interface java.util.Deque
addAll, contains, descendingIterator, iterator, reversed, sizeMethods inherited from interface org.jhotdraw8.collection.primitive.IntSequencedCollection
addLastAllAsInt, addLastAllAsInt
-
Method Details
-
add
-
addFirst
- Specified by:
addFirstin interfaceDeque<Integer>- Specified by:
addFirstin interfaceIntSequencedCollection- Specified by:
addFirstin interfaceSequencedCollection<Integer>
-
addFirstAsInt
void addFirstAsInt(int e) - Specified by:
addFirstAsIntin interfaceIntSequencedCollection- See Also:
-
addLast
- Specified by:
addLastin interfaceDeque<Integer>- Specified by:
addLastin interfaceIntSequencedCollection- Specified by:
addLastin interfaceSequencedCollection<Integer>
-
addLastAsInt
void addLastAsInt(int e) - Specified by:
addLastAsIntin interfaceIntSequencedCollection- See Also:
-
element
-
getFirst
- Specified by:
getFirstin interfaceDeque<Integer>- Specified by:
getFirstin interfaceIntSequencedCollection- Specified by:
getFirstin interfaceSequencedCollection<Integer>
-
getFirstAsInt
int getFirstAsInt()- Specified by:
getFirstAsIntin interfaceIntSequencedCollection- See Also:
-
getLast
- Specified by:
getLastin interfaceDeque<Integer>- Specified by:
getLastin interfaceIntSequencedCollection- Specified by:
getLastin interfaceSequencedCollection<Integer>
-
getLastAsInt
int getLastAsInt()- Specified by:
getLastAsIntin interfaceIntSequencedCollection- See Also:
-
offer
-
offerFirst
- Specified by:
offerFirstin interfaceDeque<Integer>
-
offerLast
-
peek
-
peekFirst
-
peekLast
-
poll
-
pollFirst
-
pollLast
-
pop
-
popAsInt
default int popAsInt()- See Also:
-
push
-
pushAsInt
default void pushAsInt(int e) - See Also:
-
remove
-
remove
-
removeFirst
- Specified by:
removeFirstin interfaceDeque<Integer>- Specified by:
removeFirstin interfaceIntSequencedCollection- Specified by:
removeFirstin interfaceSequencedCollection<Integer>
-
removeFirstAsInt
int removeFirstAsInt()- Specified by:
removeFirstAsIntin interfaceIntSequencedCollection- See Also:
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrencein interfaceDeque<Integer>
-
removeFirstOccurrenceAsInt
boolean removeFirstOccurrenceAsInt(int o) - See Also:
-
removeLast
- Specified by:
removeLastin interfaceDeque<Integer>- Specified by:
removeLastin interfaceIntSequencedCollection- Specified by:
removeLastin interfaceSequencedCollection<Integer>
-
removeLastAsInt
int removeLastAsInt()- Specified by:
removeLastAsIntin interfaceIntSequencedCollection- See Also:
-
removeLastOccurrence
- Specified by:
removeLastOccurrencein interfaceDeque<Integer>
-
removeLastOccurrenceAsInt
boolean removeLastOccurrenceAsInt(int o) - See Also:
-