Class QueryLiteral


  • public class QueryLiteral
    extends QueryFragment
    Represents a literal fragment of a Fauna query. This class encapsulates a fixed string that does not contain any variables.
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryLiteral​(java.lang.String value)
      Constructs a new LiteralFragment with the given literal value.
    • Method Summary

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

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

      • QueryLiteral

        public QueryLiteral​(java.lang.String value)
        Constructs a new LiteralFragment with the given literal value.
        Parameters:
        value - the string value of this fragment; must not be null.
        Throws:
        java.lang.IllegalArgumentException - if value is null.
    • Method Detail

      • get

        public java.lang.String get()
        Retrieves the string value of this fragment.
        Specified by:
        get in class QueryFragment
        Returns:
        the string value.
      • 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.String getValue()