Package com.fauna.query.builder
Class QueryLiteral
- java.lang.Object
-
- com.fauna.query.builder.QueryFragment
-
- com.fauna.query.builder.QueryLiteral
-
public final class QueryLiteral extends QueryFragment
Represents a literal fragment of a Fauna query. This class encapsulates a fixed string that does not contain any variables. AQueryLiteral
is used to represent literal values in a query.
-
-
Constructor Summary
Constructors Constructor Description QueryLiteral(java.lang.String value)
Constructs a newQueryLiteral
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 literal fragment.java.lang.String
getValue()
Gets the wrapped literal value.int
hashCode()
-
-
-
Method Detail
-
get
public java.lang.String get()
Retrieves the string value of this literal fragment.- Specified by:
get
in classQueryFragment
- Returns:
- the string value of this fragment.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getValue
public java.lang.String getValue()
Gets the wrapped literal value.- Returns:
- The literal value as a string.
-
-