Class SetAddFunction<V>
java.lang.Object
org.wildfly.clustering.cache.function.AbstractFunction<Collection<V>, Set<V>>
org.wildfly.clustering.cache.function.CollectionFunction<V,Set<V>>
org.wildfly.clustering.cache.function.CollectionAddFunction<V,Set<V>>
org.wildfly.clustering.cache.function.SetAddFunction<V>
- Type Parameters:
V- the set element type
- All Implemented Interfaces:
BiConsumer<Set<V>, Collection<V>>, BiFunction<Object,Set<V>, Set<V>>, Operation<Collection<V>>
- Direct Known Subclasses:
AddressSetAddFunction
Function that adds one or more items to a set.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionSetAddFunction(Collection<V> values) Constructs a new function that adds the specified elements to a set.SetAddFunction(V value) Constructs a new function that adds the specified element to a set. -
Method Summary
Methods inherited from class CollectionAddFunction
acceptMethods inherited from class CollectionFunction
equals, hashCodeMethods inherited from class AbstractFunction
apply, getOperand, toStringMethods inherited from interface BiConsumer
andThenMethods inherited from interface BiFunction
andThen
-
Constructor Details
-
SetAddFunction
Constructs a new function that adds the specified element to a set.- Parameters:
value- the value to be added to the set
-
SetAddFunction
Constructs a new function that adds the specified elements to a set.- Parameters:
values- the values to be added to the set
-