Package com.faunadb.client.types
Class Encoder
- java.lang.Object
-
- com.faunadb.client.types.Encoder
-
public final class Encoder extends Object
FaunaDB object toValue
encoder. TheEncoder
is capable of encoding user defined classes as long as properly annotated with:FaunaField
,FaunaConstructor
,FaunaIgnore
, andFaunaEnum
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Result<Value>
encode(Object obj)
Encode the specified object into aValue
instance.
-
-
-
Method Detail
-
encode
public static Result<Value> encode(Object obj)
Encode the specified object into aValue
instance.- Parameters:
obj
- Any instance of user defined classes, primitive values or any generic collection likeList
,Set
orMap
- Returns:
- A FaunaDB
Value
corresponding to the given argument - See Also:
Language.Value(Object)
-
-