Interface Lisque<T>
- Type Parameters:
T- the generic type of items
- All Superinterfaces:
Collection<T>, Deque<T>, Iterable<T>, List<T>, Queue<T>, SequencedCollection<T>
- All Known Implementing Classes:
ObjectDeque
A combination List/Deque with some expanded features based on Deque's mix of exceptional and non-exceptional methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanbooleanbooleanbooleanbooleanaddAllFirst(Collection<? extends T> c) booleanaddAllFirst(T[] array) booleanaddAllFirst(T[] array, int offset, int length) default booleanaddAllLast(Collection<? extends T> c) default booleanaddAllLast(T[] array) default booleanaddAllLast(T[] array, int offset, int length) voidvoidbooleanbooleancontainsAll(Collection<?> c) default Telement()getFirst()getLast()intintdefault booleandefault booleaninsertAll(int index, Collection<? extends T> c) default booleandefault booleandefault booleanisEmpty()iterator()last()intintlastIndexOf(Object value, int fromIndex) listIterator(int index) default booleannotEmpty()default booleandefault booleanofferFirst(T t) default booleandefault Tpeek()peekAt(int index) default Tdefault TpeekLast()default TpeekRandom(Random random) default Tpoll()poll(int index) default TpollAt(int index) default Tdefault TpollLast()default Tpop()default voiddefault Tremove()booleanremoveAll(Collection<?> c) default TremoveAt(int index) default booleandefault booleanvoidremoveRange(int fromIndex, int toIndex) booleanbooleanbooleanretainAll(Collection<?> c) reversed()voidsort(Comparator<? super T> c) voidtruncate(int newSize) voidtruncateFirst(int newSize) default voidtruncateLast(int newSize) Methods inherited from interface Collection
parallelStream, removeIf, stream, toArray
-
Method Details
-
add
-
add
-
set
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
removeAll
-
retainAll
-
sort
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
insert
-
insertAll
-
addAllLast
-
addAllFirst
-
addAll
-
addAll
-
addAll
-
addAll
-
insertAll
-
insertAll
-
addAllLast
-
addAllLast
-
addAllFirst
-
addAllFirst
-
retainAll
-
retainAll
-
truncate
void truncate(int newSize) -
truncateLast
default void truncateLast(int newSize) -
truncateFirst
void truncateFirst(int newSize) -
removeRange
void removeRange(int fromIndex, int toIndex) -
indexOf
-
lastIndexOf
-
removeAt
-
poll
-
pollAt
-
notEmpty
default boolean notEmpty() -
last
T last() -
peekAt
-
random
-
peekRandom
-
offerFirst
- Specified by:
offerFirstin interfaceDeque<T>
-
offerLast
-
pollFirst
-
pollLast
-
peekFirst
-
peekLast
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrencein interfaceDeque<T>
-
removeLastOccurrence
- Specified by:
removeLastOccurrencein interfaceDeque<T>
-
offer
-
remove
-
poll
-
element
-
peek
-
push
-
pop
-
isEmpty
-
addFirst
-
addLast
-
getFirst
-
getLast
-
removeFirst
T removeFirst()- Specified by:
removeFirstin interfaceDeque<T>- Specified by:
removeFirstin interfaceList<T>- Specified by:
removeFirstin interfaceSequencedCollection<T>
-
removeLast
T removeLast()- Specified by:
removeLastin interfaceDeque<T>- Specified by:
removeLastin interfaceList<T>- Specified by:
removeLastin interfaceSequencedCollection<T>
-
reversed
-
iterator
-
listIterator
ListIterator<T> listIterator()- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
descendingIterator
- Specified by:
descendingIteratorin interfaceDeque<T>
-