Class Value

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String id  
      java.lang.String type  
    • Constructor Summary

      Constructors 
      Constructor Description
      Value​(boolean id)
      Creates a new Value with type "Boolean".
      Value​(long id)
      Creates a new Value with type "Integer".
      Value​(java.lang.String id)
      Creates a new Value with type "String".
      Value​(java.lang.String type, java.lang.String id)
      Creates a new concrete Value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getType()
      Gets the type of this query argument.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • type

        public java.lang.String type
      • id

        public java.lang.String id
    • Constructor Detail

      • Value

        public Value​(java.lang.String type,
                     java.lang.String id)
        Creates a new concrete Value. Both type and ID must be non-null.
        Parameters:
        type - The type of the value. Must not be null.
        id - The ID of the value. Must not be null.
        Throws:
        java.lang.IllegalArgumentException - if type or id is null.
      • Value

        public Value​(java.lang.String id)
        Creates a new Value with type "String". ID must be non-null.
        Parameters:
        id - The string ID. Must not be null.
        Throws:
        java.lang.IllegalArgumentException - if id is null.
      • Value

        public Value​(long id)
        Creates a new Value with type "Integer".
        Parameters:
        id - The long integer ID.
      • Value

        public Value​(boolean id)
        Creates a new Value with type "Boolean".
        Parameters:
        id - The boolean ID.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getType

        public java.lang.String getType()
        Description copied from interface: QueryArg
        Gets the type of this query argument.
        Specified by:
        getType in interface QueryArg
        Returns:
        The type string
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object