Class IntParam


  • @Deprecated
    public class IntParam
    extends AbstractParam<Integer>
    Deprecated.
    As of release 2.0.0, will be removed in 3.0.0. Please use OptionalInt instead.
    A parameter encapsulating integer values. All non-decimal values will return a 400 Bad Request response.
    • Constructor Detail

      • IntParam

        public IntParam​(@Nullable String input)
        Deprecated.
      • IntParam

        public IntParam​(@Nullable String input,
                        String parameterName)
        Deprecated.
    • Method Detail

      • errorMessage

        protected String errorMessage​(Exception e)
        Deprecated.
        Description copied from class: AbstractParam
        Given a string representation which was unable to be parsed and the exception thrown, produce an error message to be sent to the client.
        Overrides:
        errorMessage in class AbstractParam<Integer>
        Parameters:
        e - the exception thrown while parsing input
        Returns:
        the error message to be sent the client
      • parse

        protected Integer parse​(@Nullable String input)
        Deprecated.
        Description copied from class: AbstractParam
        Given a string representation, parse it and return an instance of the parameter type.
        Specified by:
        parse in class AbstractParam<Integer>
        Parameters:
        input - the raw input
        Returns:
        input, parsed as an instance of T