Class BooleanImplicationValidator
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.validators.Validator
com.hypixel.hytale.server.npc.asset.builder.validators.BooleanImplicationValidator
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBooleanImplicationValidator(String[] antecedentSet, boolean antecedentState, String[] consequentSet, boolean consequentState, boolean anyAntecedent) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanallMatch(boolean[] values, boolean expected) private booleananyMatch(boolean[] values, boolean expected) booleantest(boolean[] antecedents, boolean[] consequents) static BooleanImplicationValidatorwithAttributes(String[] antecedentSet, boolean antecedentState, String[] consequentSet, boolean consequentState, boolean anyAntecedent)
-
Field Details
-
antecedentSet
-
antecedentState
private final boolean antecedentState -
consequentSet
-
consequentState
private final boolean consequentState -
anyAntecedent
private final boolean anyAntecedent
-
-
Constructor Details
-
BooleanImplicationValidator
-
-
Method Details
-
test
public boolean test(@Nonnull boolean[] antecedents, @Nonnull boolean[] consequents) -
allMatch
private boolean allMatch(@Nonnull boolean[] values, boolean expected) -
anyMatch
private boolean anyMatch(@Nonnull boolean[] values, boolean expected) -
errorMessage
-
withAttributes
@Nonnull public static BooleanImplicationValidator withAttributes(String[] antecedentSet, boolean antecedentState, String[] consequentSet, boolean consequentState, boolean anyAntecedent)
-