Package com.github.tonivade.purefun.data
Class SequenceCollection<E>
java.lang.Object
com.github.tonivade.purefun.data.SequenceCollection<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,SequencedCollection<E>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) voidvoidvoidclear()booleanbooleancontainsAll(Collection<?> c) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanbooleanretainAll(Collection<?> c) reversed()intsize()Object[]toArray()<T> T[]toArray(T[] array) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, spliterator, stream, toArrayMethods inherited from interface java.util.SequencedCollection
getFirst, getLast
-
Field Details
-
sequence
-
-
Constructor Details
-
SequenceCollection
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<E>
-
contains
- Specified by:
containsin interfaceCollection<E>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<E>
-
toArray
public <T> T[] toArray(T[] array) - Specified by:
toArrayin interfaceCollection<E>
-
reversed
- Specified by:
reversedin interfaceSequencedCollection<E>
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>
-
add
- Specified by:
addin interfaceCollection<E>
-
addFirst
- Specified by:
addFirstin interfaceSequencedCollection<E>
-
addLast
- Specified by:
addLastin interfaceSequencedCollection<E>
-
remove
- Specified by:
removein interfaceCollection<E>
-
removeFirst
- Specified by:
removeFirstin interfaceSequencedCollection<E>
-
removeLast
- Specified by:
removeLastin interfaceSequencedCollection<E>
-
removeIf
- Specified by:
removeIfin interfaceCollection<E>
-
addAll
- Specified by:
addAllin interfaceCollection<E>
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>
-