Package one.xingyi.core.marshelling
Interface JsonWriter<J>
-
- All Known Subinterfaces:
JsonParserAndWriter<J>
public interface JsonWriter<J>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringfromJ(J j)JliftString(java.lang.String string)default JmakeList(java.util.List<java.lang.Object> items)<T> JmakeList(IResourceList<T> items)JmakeObject(java.lang.Object... namesAndValues)Contract is that there are an even number and that the first is a string, the next is a J<T> JmakeSimpleList(ISimpleList<T> items)default <Context> java.lang.StringtoJson(HasJson<Context> hasJson, Context context)
-
-
-
Method Detail
-
toJson
default <Context> java.lang.String toJson(HasJson<Context> hasJson, Context context)
-
makeObject
J makeObject(java.lang.Object... namesAndValues)
Contract is that there are an even number and that the first is a string, the next is a J
-
makeList
<T> J makeList(IResourceList<T> items)
-
makeList
default J makeList(java.util.List<java.lang.Object> items)
-
makeSimpleList
<T> J makeSimpleList(ISimpleList<T> items)
-
liftString
J liftString(java.lang.String string)
-
fromJ
java.lang.String fromJ(J j)
-
-