Class AbstractFunction<T,O>

java.lang.Object
org.wildfly.clustering.cache.function.AbstractFunction<T,O>
Type Parameters:
T - the operand type
O - the operable object type
All Implemented Interfaces:
BiConsumer<O,T>, BiFunction<Object,O,O>, Operation<T>
Direct Known Subclasses:
CollectionFunction, MapFunction

public abstract class AbstractFunction<T,O> extends Object implements BiFunction<Object,O,O>, BiConsumer<O,T>, Operation<T>
Function that operates on an operable object.
Author:
Paul Ferraro
  • Constructor Details

    • AbstractFunction

      public AbstractFunction(T operand, UnaryOperator<O> copier, Supplier<O> factory, Predicate<O> empty)
      Constructs a function.
      Parameters:
      operand - the function operand
      copier - an operable copier
      factory - an operable factory
      empty - a predicate testing for an empty operable
  • Method Details