Package com.faunadb.client.types
Class Encoder
- java.lang.Object
-
- com.faunadb.client.types.Encoder
-
public final class Encoder extends Object
FaunaDB object toValueencoder. TheEncoderis 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 aValueinstance.
-
-
-
Method Detail
-
encode
public static Result<Value> encode(Object obj)
Encode the specified object into aValueinstance.- Parameters:
obj- Any instance of user defined classes, primitive values or any generic collection likeList,SetorMap- Returns:
- A FaunaDB
Valuecorresponding to the given argument - See Also:
Language.Value(Object)
-
-