jklustor-all-api-0.0.7-20140619012755 (ChemAxon)


com.chemaxon.apidiscovery
Class Validators.UnitInterval

Object
  extended by com.chemaxon.apidiscovery.Validators.UnitInterval
All Implemented Interfaces:
Validator<Double>
Enclosing class:
Validators

public static class Validators.UnitInterval
extends Object
implements Validator<Double>

Validator accepts double values in the unit interval (0.0 - 1.0, inclusive).


Field Summary
static double RECOMMENDED_VALUE
          The recommended valui in case of reject.
 
Constructor Summary
Validators.UnitInterval()
           
 
Method Summary
 String getDescription()
          Description of this validator.
 ValidateResult<Double> validateValue(Double value)
          Validate parameter value.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECOMMENDED_VALUE

public static final double RECOMMENDED_VALUE
The recommended valui in case of reject.

See Also:
Constant Field Values
Constructor Detail

Validators.UnitInterval

public Validators.UnitInterval()
Method Detail

validateValue

public ValidateResult<Double> validateValue(Double value)
Description copied from interface: Validator
Validate parameter value.

Specified by:
validateValue in interface Validator<Double>
Parameters:
value - Parameter value to validate
Returns:
Result of validation

getDescription

public String getDescription()
Description copied from interface: Validator
Description of this validator.

Specified by:
getDescription in interface Validator<Double>
Returns:
Description of this validator TODO: maybe use Description annotation?

jklustor-all-api-0.0.7-20140619012755 (ChemAxon)