Package me.hsgamer.hscore.builder
Class FunctionalMassBuilder<I,O>
java.lang.Object
me.hsgamer.hscore.builder.MassBuilder<I,O>
me.hsgamer.hscore.builder.FunctionalMassBuilder<I,O>
- Type Parameters:
I
- the type of the inputO
- the type of the output
- Direct Known Subclasses:
ActionBuilder
The mass builder for the functional value.
This is useful for builders where the input contains a type and the type is used to determine the creator.
-
Constructor Summary
-
Method Summary
Methods inherited from class me.hsgamer.hscore.builder.MassBuilder
build, buildAll, clear, getElements, register, register, remove
-
Constructor Details
-
FunctionalMassBuilder
public FunctionalMassBuilder()
-
-
Method Details
-
getType
-
register
Register a new creator- Parameters:
creator
- the creatortype
- the type
-
build
Build the value from the input- Parameters:
list
- the inputdefaultValueFunction
- the default value function- Returns:
- the value
-