AtMostOneBooleanValidator

public class AtMostOneBooleanValidator extends Validator

Class AtMostOneBooleanValidator. Provides atmostonebooleanvalidator functionality for the Hytale server.

java.lang.Object > Validator > AtMostOneBooleanValidator

Field Summary

No fields documented.

Method Detail

AtMostOneBooleanValidator

public private AtMostOneBooleanValidator (@Nonnull final String[] attributes)

Method AtMostOneBooleanValidator.

Parameters:
@Nonnull final String[] attributes

test

static boolean test (@Nonnull final boolean[] values)

Method test.

Parameters:
@Nonnull final boolean[] values

errorMessage

static String errorMessage (final String[] attributes)

Method errorMessage.

Parameters:
final String[] attributes

withAttributes

static AtMostOneBooleanValidator withAttributes (final String attribute1, final String attribute2)

Method withAttributes.

Parameters:
final String attribute1
final String attribute2