BooleanImplicationValidator

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[] antecedentSet
final boolean antecedentState
final String[] consequentSet
final boolean consequentState
final boolean anyAntecedent

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[] values
final boolean expected

anyMatch

private boolean anyMatch (@Nonnull final boolean[] values, final boolean expected)

Method anyMatch.

Parameters:
@Nonnull final boolean[] values
final boolean expected

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[] antecedentSet
final boolean antecedentState
final String[] consequentSet
final boolean consequentState
final boolean anyAntecedent