Class PositiveInteger
- java.lang.Object
-
- org.glassfish.config.support.datatypes.PositiveInteger
-
- All Implemented Interfaces:
DataType
@Service public class PositiveInteger extends Object implements DataType
Represents an integer from 1 to Integer.MAX_VALUE. It's modelled as a functional class.- Author:
- केदार ([email protected])
-
-
Constructor Summary
Constructors Constructor Description PositiveInteger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(String value)
Validates the given value as a positive integer.
-
-
-
Method Detail
-
validate
public void validate(String value) throws ValidationException
Validates the given value as a positive integer.- Specified by:
validate
in interfaceDataType
- Parameters:
value
-- Throws:
ValidationException
-
-