public class VocabWordFactory extends java.lang.Object implements SequenceElementFactory<VocabWord>
Constructor and Description |
---|
VocabWordFactory() |
Modifier and Type | Method and Description |
---|---|
VocabWord |
deserialize(java.lang.String json)
This method builds object from provided JSON
|
java.lang.String |
serialize(VocabWord element)
This method serializaes object into JSON string
|
public VocabWord deserialize(java.lang.String json)
deserialize
in interface SequenceElementFactory<VocabWord>
json
- JSON for restored objectpublic java.lang.String serialize(VocabWord element)
serialize
in interface SequenceElementFactory<VocabWord>
element
-