Package org.midheaven.collections
Interface ResizableDistinctAssortment<T>
- Type Parameters:
T- type of the elements in the ResizableDistinctAssortment
- All Superinterfaces:
Assortment<T>,Countable,DistinctAssortment<T>,Enumerable<T>,Iterable<T>
Defines the contract for resizable
DistinctAssortment-
Method Summary
Modifier and TypeMethodDescriptionbooleanPerforms add.booleanPerforms add All.voidclear()Performs clear.booleanPerforms remove.booleanPerforms remove All.booleanPerforms remove If.booleanPerforms retainAll.Returns to Collection.Methods inherited from interface org.midheaven.collections.Assortment
contains, containsAll, count, isEmptyMethods inherited from interface org.midheaven.collections.DistinctAssortment
cast, filter, map, ofType, sortedMethods inherited from interface org.midheaven.collections.Enumerable
allMatch, any, anyMatch, as, associate, associate, collect, concat, distinct, enumerator, first, flatMap, groupBy, iterator, limit, maximum, minimum, peek, reduce, reduce, skip, toArray, toArray, toArray, toDistinctAssortment, toSequence, toSequence, with, zipMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
add
Performs add.- Parameters:
e- the e value- Returns:
- the result of add
-
remove
Performs remove.- Parameters:
o- the o value- Returns:
- the result of remove
-
addAll
Performs add All.- Parameters:
c- the c value- Returns:
- the result of addAll
-
removeAll
Performs remove All.- Parameters:
c- the c value- Returns:
- the result of removeAll
-
retainAll
Performs retainAll.- Parameters:
c- the c value- Returns:
- the result of retainAll
-
clear
void clear()Performs clear. -
removeIf
Performs remove If.- Parameters:
filter- the filter value- Returns:
- the result of removeIf
-
toCollection
Returns to Collection.- Specified by:
toCollectionin interfaceAssortment<T>- Specified by:
toCollectionin interfaceDistinctAssortment<T>- Returns:
- the result of toCollection
-