public class BooleanImplicationValidator extends Validator
Class BooleanImplicationValidator. Provides booleanimplicationvalidator functionality for the Hytale server.
java.lang.Object > Validator > BooleanImplicationValidator
Field Summary
antecedent
final
boolean
antecedent
Field antecedent.
Method Detail
BooleanImplicationValidator
public
private
BooleanImplicationValidator
(final String[] antecedentSet, final boolean antecedentState, final String[] consequentSet, final boolean consequentState, final boolean anyAntecedent)
Method BooleanImplicationValidator.
- Parameters:
final String[]antecedentSetfinal booleanantecedentStatefinal String[]consequentSetfinal booleanconsequentStatefinal booleananyAntecedent
test
public
boolean
test
(@Nonnull final boolean[] antecedents, @Nonnull final boolean[] consequents)
Method test.
- Parameters:
@Nonnull final boolean[]antecedents@Nonnull final boolean[]consequents
allMatch
private
boolean
allMatch
(@Nonnull final boolean[] values, final boolean expected)
Method allMatch.
- Parameters:
@Nonnull final boolean[]valuesfinal booleanexpected
anyMatch
private
boolean
anyMatch
(@Nonnull final boolean[] values, final boolean expected)
Method anyMatch.
- Parameters:
@Nonnull final boolean[]valuesfinal booleanexpected
errorMessage
public
String
errorMessage
()
Method errorMessage.
withAttributes
static
BooleanImplicationValidator
withAttributes
(final String[] antecedentSet, final boolean antecedentState, final String[] consequentSet, final boolean consequentState, final boolean anyAntecedent)
Method withAttributes.
- Parameters:
final String[]antecedentSetfinal booleanantecedentStatefinal String[]consequentSetfinal booleanconsequentStatefinal booleananyAntecedent