SequencedCollection (Java SE 25 & JDK 25)
- Type Parameters:
E- the type of elements in this collection
- All Superinterfaces:
Collection<E>, Iterable<E>
- All Known Subinterfaces:
BlockingDeque<E>, Deque<E>, List<E>, NavigableSet<E>, SequencedSet<E>, SortedSet<E>
- All Known Implementing Classes:
AbstractList, AbstractSequentialList, ArrayDeque, ArrayList, AttributeList, ConcurrentLinkedDeque, ConcurrentSkipListSet, CopyOnWriteArrayList, LinkedBlockingDeque, LinkedHashSet, LinkedList, RoleList, RoleUnresolvedList, Stack, TreeSet, Vector
-
Method Summary
default voidAdds an element as the first element of this collection (optional operation).
default voidAdds an element as the last element of this collection (optional operation).
default EgetFirst()Gets the first element of this collection.
default EgetLast()Gets the last element of this collection.
default ERemoves and returns the first element of this collection (optional operation).
default ERemoves and returns the last element of this collection (optional operation).
reversed()Returns a reverse-ordered view of this collection.
-
Method Details
-
reversed
-
addFirst
-
addLast
-
getFirst
-
getLast
-
removeFirst
-
removeLast
-