Class CollectionAddFunction<V,C extends Collection<V>>
- java.lang.Object
-
- org.wildfly.clustering.ee.cache.function.AbstractFunction<V,C>
-
- org.wildfly.clustering.ee.cache.function.CollectionFunction<V,C>
-
- org.wildfly.clustering.ee.cache.function.CollectionAddFunction<V,C>
-
- Type Parameters:
V- the collection element typeC- the collection type
- All Implemented Interfaces:
BiConsumer<C,V>,BiFunction<Object,C,C>
- Direct Known Subclasses:
SetAddFunction
public class CollectionAddFunction<V,C extends Collection<V>> extends CollectionFunction<V,C>
Function that adds an item to a collection.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CollectionAddFunction(V value, UnaryOperator<C> copier, Supplier<C> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(C collection, V value)-
Methods inherited from class org.wildfly.clustering.ee.cache.function.AbstractFunction
apply, getOperand
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-