Package com.fauna.query.builder
Class QueryVal<T>
- java.lang.Object
-
- com.fauna.query.builder.QueryFragment<T>
-
- com.fauna.query.builder.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.
-
-
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()
-
-
-
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 classQueryFragment<T>
- Returns:
- the encapsulated object.
-
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.Object getValue()
-
-