public final class Encoder
extends java.lang.Object
Value encoder.
The Encoder is capable of encoding user defined classes as long
as properly annotated with: FaunaField, FaunaConstructor, FaunaIgnore, and FaunaEnum.| Modifier and Type | Method and Description |
|---|---|
static Result<Value> |
encode(java.lang.Object obj)
Encode the specified object into a
Value instance. |
public static Result<Value> encode(java.lang.Object obj)
Value instance.obj - Any instance of user defined classes, primitive values or any
generic collection like List, Set or MapValue corresponding to the given argumentLanguage.Value(Object)