Class BooleanImplicationValidator

java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.validators.Validator
com.hypixel.hytale.server.npc.asset.builder.validators.BooleanImplicationValidator

public class BooleanImplicationValidator extends Validator
  • Field Details

    • antecedentSet

      private final String[] antecedentSet
    • antecedentState

      private final boolean antecedentState
    • consequentSet

      private final String[] consequentSet
    • consequentState

      private final boolean consequentState
    • anyAntecedent

      private final boolean anyAntecedent
  • Constructor Details

    • BooleanImplicationValidator

      private BooleanImplicationValidator(String[] antecedentSet, boolean antecedentState, String[] consequentSet, boolean consequentState, boolean anyAntecedent)
  • 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

      @Nonnull public String errorMessage()
    • withAttributes

      @Nonnull public static BooleanImplicationValidator withAttributes(String[] antecedentSet, boolean antecedentState, String[] consequentSet, boolean consequentState, boolean anyAntecedent)