Class Request<ParamType,​IdType>

  • Type Parameters:
    ParamType - "params" element type parameter
    IdType - "id" type parameter

    public class Request<ParamType,​IdType>
    extends AbstractRequest<ParamType,​IdType>
    A class for binding requests.
    Author:
    Jin Kwon <onacit_at_gmail.com>
    • Constructor Detail

      • Request

        public Request()
    • Method Detail

      • getId

        @NotNull
        public IdType getId()
        Returns the current value of "id" property.

        The getId() method of Request class is annotated with NotNull.

        Overrides:
        getId in class Identifiable<IdType>
        Returns:
        the current value of "id" property.
      • isIdNull

        @AssertFalse
        protected @javax.validation.constraints.AssertFalse boolean isIdNull()
        Indicates whether the current value of "id" property is semantically null.

        The isIdNull() method of Identifiable class returns the value of following expression.

        getId() == null
        The isIdNull() method of Request class annotated with AssertFalse.
        Overrides:
        isIdNull in class Identifiable<IdType>
        Returns:
        true if the current value of "id" property is semantically null; false otherwise.