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


com.chemaxon.apidiscovery
Class Validators.NonNegativeDouble

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

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

Validator accepts only non negative doubles (also 0).


Constructor Summary
Validators.NonNegativeDouble()
           
 
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
 

Constructor Detail

Validators.NonNegativeDouble

public Validators.NonNegativeDouble()
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)