Class Operators.LiftedMapSet<X,Y>

java.lang.Object
eu.bandm.tools.util.Operators.LiftedFun<X,Y>
eu.bandm.tools.util.Operators.LiftedMapSet<X,Y>
All Implemented Interfaces:
Operators.Fun<Set<X>,Set<Y>>
Enclosing class:
Operators

static class Operators.LiftedMapSet<X,Y> extends Operators.LiftedFun<X,Y> implements Operators.Fun<Set<X>,Set<Y>>
  • Constructor Details

    • LiftedMapSet

      public LiftedMapSet(Operators.Fun<? super X,? extends Y> fun)
  • Method Details

    • apply

      public Set<Y> apply(Set<X> elems)
      Description copied from interface: Operators.Fun
      Compute an output element from an input element. Computation should be stateless and thread-safe, i.e., f.apply(x) for a given fixed function object f and input element x should not vary unless the observable state of x varies.
      Specified by:
      apply in interface Operators.Fun<X,Y>
      Parameters:
      elems - an input element.
      Returns:
      an output element.
    • getName

      public String getName()
      Specified by:
      getName in class Operators.LiftedFun<X,Y>