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. AQueryLiteralis used to represent literal values in a query.
-
-
Constructor Summary
Constructors Constructor Description QueryLiteral(java.lang.String value)Constructs a newQueryLiteralwith the given literal value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.Stringget()Retrieves the string value of this literal fragment.java.lang.StringgetValue()Gets the wrapped literal value.inthashCode()
-
-
-
Method Detail
-
get
public java.lang.String get()
Retrieves the string value of this literal fragment.- Specified by:
getin classQueryFragment- Returns:
- the string value of this fragment.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getValue
public java.lang.String getValue()
Gets the wrapped literal value.- Returns:
- The literal value as a string.
-
-