Class QueryVal<T>


  • public class QueryVal<T>
    extends QueryFragment<T>
    Represents a value fragment of a Fauna query. This class encapsulates a value that can be a variable in the query.
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryVal​(T value)
      Constructs a ValueFragment with the specified value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      T get()
      Retrieves the encapsulated value of this fragment.
      java.lang.Object getValue()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryVal

        public QueryVal​(T value)
        Constructs a ValueFragment with the specified value.
        Parameters:
        value - the value to encapsulate, which can be any object.
    • Method Detail

      • get

        public T get()
        Retrieves the encapsulated value of this fragment.
        Specified by:
        get in class QueryFragment<T>
        Returns:
        the encapsulated object.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.Object getValue()