public class DefaultCollectionMutator<E,M extends CollectionMutator<E,M>> extends Object implements CollectionMutator<E,M>
| Constructor and Description |
|---|
DefaultCollectionMutator(Collection<? extends E> seed) |
| Modifier and Type | Method and Description |
|---|---|
M |
add(Collection<? extends E> c) |
M |
add(E e) |
protected void |
changed()
Callback for subclasses that wish to be notified if the internal collection has changed via builder mutation
methods.
|
M |
clear() |
protected Collection<E> |
getCollection() |
M |
remove(E e) |
protected M |
self() |
public DefaultCollectionMutator(Collection<? extends E> seed)
protected final M self()
public M add(E e)
add in interface CollectionMutator<E,M extends CollectionMutator<E,M>>public M remove(E e)
remove in interface CollectionMutator<E,M extends CollectionMutator<E,M>>public M add(Collection<? extends E> c)
add in interface CollectionMutator<E,M extends CollectionMutator<E,M>>public M clear()
clear in interface CollectionMutator<E,M extends CollectionMutator<E,M>>protected void changed()
protected Collection<E> getCollection()
Copyright © 2014–2024 jsonwebtoken.io. All rights reserved.