E - the type of elements in the collectionM - the mutator subtype, for method chainingpublic interface CollectionMutator<E,M extends CollectionMutator<E,M>>
Collection instance while also supporting method chaining. The
Collection.add(Object), Collection.addAll(Collection), Collection.remove(Object), and
Collection.clear() methods do not support method chaining, so this interface enables that behavior.| Modifier and Type | Method and Description |
|---|---|
M |
add(Collection<? extends E> c)
Adds the elements to the collection in iteration order.
|
M |
add(E e)
Adds the specified element to the collection.
|
M |
clear()
Removes all elements in the collection.
|
M |
remove(E e)
Removes the specified element from the collection.
|
M add(E e)
e - the element to add.M add(Collection<? extends E> c)
c - the collection to addM clear()
Copyright © 2014–2023 jsonwebtoken.io. All rights reserved.