Class Builder.FunctionElement<R,V>

java.lang.Object
me.hsgamer.hscore.builder.Builder.FunctionElement<R,V>
Type Parameters:
R - the type of the raw value
V - the type of the final value
All Implemented Interfaces:
Function<AbstractMap.SimpleEntry<String,R>,Optional<V>>
Enclosing class:
Builder<R,V>

public static class Builder.FunctionElement<R,V> extends Object implements Function<AbstractMap.SimpleEntry<String,R>,Optional<V>>
The function element
  • Constructor Details

    • FunctionElement

      public FunctionElement(BiFunction<String,R,V> function, String... names)
      Create a new function element
      Parameters:
      function - the function
      names - the names or the aliases of the function
  • Method Details