Class NonNegativeInteger
- java.lang.Object
-
- org.glassfish.config.support.datatypes.NonNegativeInteger
-
- All Implemented Interfaces:
org.jvnet.hk2.config.DataType
@Service public class NonNegativeInteger extends Object implements org.jvnet.hk2.config.DataType
Represents an integer from 0 to Integer.MAX_VALUE. It's modeled as a functional class.- Author:
- केदार (km@dev.java.net)
-
-
Constructor Summary
Constructors Constructor Description NonNegativeInteger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(String value)Validates the value as a non-negative integer.
-
-
-
Method Detail
-
validate
public void validate(String value) throws org.jvnet.hk2.config.ValidationException
Validates the value as a non-negative integer.- Specified by:
validatein interfaceorg.jvnet.hk2.config.DataType- Parameters:
value-- Throws:
org.jvnet.hk2.config.ValidationException
-
-