IntRangeBoundValidator

public class IntRangeBoundValidator implements Validator

Class IntRangeBoundValidator. Provides intrangeboundvalidator functionality for the Hytale server.

java.lang.Object > IntRangeBoundValidator

Field Summary

arraySchema

final ArraySchema arraySchema

Field arraySchema.

items

final Schema[] items

Field items.

Method Detail

lowerBound

static IntRangeBoundValidator lowerBound (final Integer min, final Integer max, final boolean inclusive)

Method lowerBound.

Parameters:
final Integer min
final Integer max
final boolean inclusive

upperBound

static IntRangeBoundValidator upperBound (final Integer min, final Integer max, final boolean inclusive)

Method upperBound.

Parameters:
final Integer min
final Integer max
final boolean inclusive

accept

public void accept (@Nullable final IntRange intRange, @Nonnull final ValidationResults results)

Method accept.

Parameters:
@Nullable final IntRange intRange
@Nonnull final ValidationResults results

validateBound

private void validateBound (final int value, final String boundName, @Nonnull final ValidationResults results)

Method validateBound.

Parameters:
final int value
final String boundName
@Nonnull final ValidationResults results

if

public else if (value <= this.min)

Method if.

Parameters:
value <= this.min

updateSchema

public void updateSchema (final SchemaContext context, final Schema target)

Method updateSchema.

Parameters:
final SchemaContext context
final Schema target

updateSchemaBound

private void updateSchemaBound (@Nonnull final IntegerSchema integerSchema)

Method updateSchemaBound.

Parameters:
@Nonnull final IntegerSchema integerSchema