Package com.dslplatform.json
Class BoolConverter
java.lang.Object
com.dslplatform.json.BoolConverter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonReader.ReadObject<boolean[]> static final JsonWriter.WriteObject<boolean[]> static final boolean[]static final JsonReader.ReadObject<Boolean> static final JsonReader.ReadObject<Boolean> static final JsonWriter.WriteObject<Boolean> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandeserialize(JsonReader reader) static boolean[]deserializeBoolArray(JsonReader reader) deserializeCollection(JsonReader reader) static voiddeserializeCollection(JsonReader reader, Collection<Boolean> res) static voiddeserializeNullableCollection(JsonReader reader, Collection<Boolean> res) (package private) static <T> voidregisterDefault(DslJson<T> json) static voidserialize(boolean[] value, JsonWriter sw) static voidserialize(boolean value, JsonWriter sw) static voidserializeNullable(Boolean value, JsonWriter sw)
-
Field Details
-
EMPTY_ARRAY
public static final boolean[] EMPTY_ARRAY -
READER
-
NULLABLE_READER
-
WRITER
-
ARRAY_READER
-
ARRAY_WRITER
-
-
Constructor Details
-
BoolConverter
public BoolConverter()
-
-
Method Details
-
registerDefault
-
serializeNullable
-
serialize
-
serialize
-
deserialize
- Throws:
IOException
-
deserializeBoolArray
- Throws:
IOException
-
deserializeCollection
- Throws:
IOException
-
deserializeCollection
public static void deserializeCollection(JsonReader reader, Collection<Boolean> res) throws IOException - Throws:
IOException
-
deserializeNullableCollection
public static ArrayList<Boolean> deserializeNullableCollection(JsonReader reader) throws IOException - Throws:
IOException
-
deserializeNullableCollection
public static void deserializeNullableCollection(JsonReader reader, Collection<Boolean> res) throws IOException - Throws:
IOException
-