Package com.fauna.query.builder
Class QueryObj<E extends QueryFragment>
- java.lang.Object
-
- com.fauna.query.builder.QueryFragment<java.util.Map<java.lang.String,E>>
-
- com.fauna.query.builder.QueryObj<E>
-
public class QueryObj<E extends QueryFragment> extends QueryFragment<java.util.Map<java.lang.String,E>>
Represents an object fragment of a Fauna query. Object fragments allow for the evaluation of FQL statements stored on the object. This class encapsulates an object that can be a variable in the query.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,E>
get()
Retrieves the encapsulated value of this fragment.java.lang.Object
getValue()
int
hashCode()
static <E extends QueryFragment>
QueryObjof(java.util.Map<java.lang.String,E> val)
-
-
-
Constructor Detail
-
QueryObj
public QueryObj(java.util.Map<java.lang.String,E> value)
Constructs a QueryObj with the specified value.- Parameters:
value
- the value to encapsulate.
-
-
Method Detail
-
of
public static <E extends QueryFragment> QueryObj of(java.util.Map<java.lang.String,E> val)
-
get
public java.util.Map<java.lang.String,E> get()
Retrieves the encapsulated value of this fragment.- Specified by:
get
in classQueryFragment<java.util.Map<java.lang.String,E extends QueryFragment>>
- 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()
-
-