DoubleRangeValidator

public class DoubleRangeValidator extends DoubleValidator

Class DoubleRangeValidator. Provides doublerangevalidator functionality for the Hytale server.

java.lang.Object > DoubleValidator > DoubleRangeValidator

Field Summary

No fields documented.

Method Detail

DoubleRangeValidator

public private DoubleRangeValidator (final RelationalOperator relationLower, final double lower, final RelationalOperator relationUpper, final double upper)

Method DoubleRangeValidator.

Parameters:
final RelationalOperator relationLower
final double lower
final RelationalOperator relationUpper
final double upper

between01

static DoubleRangeValidator between01 ()

Method between01.

between

static DoubleRangeValidator between (final double lower, final double upper)

Method between.

Parameters:
final double lower
final double upper

fromExclToIncl

static DoubleRangeValidator fromExclToIncl (final double lower, final double upper)

Method fromExclToIncl.

Parameters:
final double lower
final double upper

fromExclToExcl

static DoubleRangeValidator fromExclToExcl (final double lower, final double upper)

Method fromExclToExcl.

Parameters:
final double lower
final double upper

test

public boolean test (final double value)

Method test.

Parameters:
final double value

errorMessage

public String errorMessage (final double value)

Method errorMessage.

Parameters:
final double value

errorMessage0

private String errorMessage0 (final double value, final String name)

Method errorMessage0.

Parameters:
final double value
final String name