Package net.paulem.arcana.hook
Class HookCondition.HookConditionBuilder<K,V>
java.lang.Object
net.paulem.arcana.hook.HookCondition.HookConditionBuilder<K,V>
- Type Parameters:
K- the type of the keysV- the type of the values associated with each key
- Enclosing class:
HookCondition<K,V>
A builder for
HookCondition instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newHookConditioncontaining all the keys and values registered so far.Registers the value to use for the given key.
-
Constructor Details
-
HookConditionBuilder
public HookConditionBuilder()
-
-
Method Details
-
when
Registers the value to use for the given key.- Parameters:
key- the key to registervalue- the value to associate with the key- Returns:
- this builder, for chaining
-
build
Builds a newHookConditioncontaining all the keys and values registered so far.- Returns:
- a new HookCondition instance
-