Class NonCascadingProperty<S extends Enum<S>, V>

Type Parameters:
S - is the type of the states of a NonCascadingProperty.
V - is the type of the values of a NonCascadingProperty.
All Implemented Interfaces:
INameHolder

public final class NonCascadingProperty<S extends Enum<S>, V> extends AbstractMaterializedProperty<S,V>
Author:
Silvan Wyss
  • Method Details

    • forDoubleWithNameAndStateClassAndSetterMethodAndDefaultValue

      public static <S2 extends Enum<S2>> NonCascadingProperty<S2,Double> forDoubleWithNameAndStateClassAndSetterMethodAndDefaultValue(String name, Class<S2> stateClass, BiConsumer<S2,Double> setterMethod, double defaultValue)
    • forIntWithNameAndStateClassAndSetterMethodAndDefaultValue

      public static <S2 extends Enum<S2>> NonCascadingProperty<S2,Integer> forIntWithNameAndStateClassAndSetterMethodAndDefaultValue(String name, Class<S2> stateClass, BiConsumer<S2,Integer> setterMethod, int defaultValue)
    • withNameAndStateClassAndValueMapperAndSpecificationMapperAndDefaultValue

      public static <S2 extends Enum<S2>, V2> NonCascadingProperty<S2,V2> withNameAndStateClassAndValueMapperAndSpecificationMapperAndDefaultValue(String name, Class<S2> stateClass, Function<INode<?>,V2> valueCreator, Function<V2,INode<?>> specificationCreator, V2 defaultValue)
    • withNameAndStateClassAndValueMapperAndSpecificationMapperAndSetterAndDefaultValue

      public static <S2 extends Enum<S2>, V2> NonCascadingProperty<S2,V2> withNameAndStateClassAndValueMapperAndSpecificationMapperAndSetterAndDefaultValue(String name, Class<S2> stateClass, Function<INode<?>,V2> valueCreator, Function<V2,INode<?>> specificationCreator, BiConsumer<S2,V2> setterMethod, V2 defaultValue)
    • setEmptyForState

      public void setEmptyForState(S state)