Class PositiveInteger

  • All Implemented Interfaces:
    org.jvnet.hk2.config.DataType

    @Service
    public class PositiveInteger
    extends Object
    implements org.jvnet.hk2.config.DataType
    Represents an integer from 1 to Integer.MAX_VALUE. It's modeled as a functional class.
    Author:
    केदार (km@dev.java.net)
    • Constructor Detail

      • PositiveInteger

        public PositiveInteger()
    • Method Detail

      • validate

        public void validate​(String value)
                      throws org.jvnet.hk2.config.ValidationException
        Validates the given value as a positive integer.
        Specified by:
        validate in interface org.jvnet.hk2.config.DataType
        Parameters:
        value -
        Throws:
        org.jvnet.hk2.config.ValidationException