Class BooleanRequestBody

  • All Implemented Interfaces:
    Serializable

    public class BooleanRequestBody
    extends Object
    implements Serializable
    BooleanRequestBody is the request body structure used on OMAG REST API calls that passed a boolean flag.
    See Also:
    Serialized Form
    • Constructor Detail

      • BooleanRequestBody

        public BooleanRequestBody()
        Default constructor
      • BooleanRequestBody

        public BooleanRequestBody​(BooleanRequestBody template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • isFlag

        public boolean isFlag()
        Return the boolean result.
        Returns:
        boolean
      • setFlag

        public void setFlag​(boolean flag)
        Set up the boolean result.
        Parameters:
        flag - boolean
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class Object
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class Object
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Create a hash code for this element type.
        Overrides:
        hashCode in class Object
        Returns:
        int hash code