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


com.chemaxon.apidiscovery
Class Validators.NonNegativeInteger

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

public static class Validators.NonNegativeInteger
extends Object
implements Validator<Integer>

Validator accepts only non negative integers (zero and greater).


Constructor Summary
Validators.NonNegativeInteger()
           
 
Method Summary
 String getDescription()
          Description of this validator.
 ValidateResult<Integer> validateValue(Integer value)
          Validate parameter value.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validators.NonNegativeInteger

public Validators.NonNegativeInteger()
Method Detail

validateValue

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

Specified by:
validateValue in interface Validator<Integer>
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<Integer>
Returns:
Description of this validator TODO: maybe use Description annotation?

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