public abstract class BoolConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
static JsonReader.ReadObject<boolean[]> |
ARRAY_READER |
static JsonWriter.WriteObject<boolean[]> |
ARRAY_WRITER |
static boolean[] |
EMPTY_ARRAY |
static JsonReader.ReadObject<Boolean> |
NULLABLE_READER |
static JsonReader.ReadObject<Boolean> |
READER |
static JsonWriter.WriteObject<Boolean> |
WRITER |
| Constructor and Description |
|---|
BoolConverter() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
deserialize(JsonReader reader) |
static boolean[] |
deserializeBoolArray(JsonReader reader) |
static ArrayList<Boolean> |
deserializeCollection(JsonReader reader) |
static void |
deserializeCollection(JsonReader reader,
Collection<Boolean> res) |
static ArrayList<Boolean> |
deserializeNullableCollection(JsonReader reader) |
static void |
deserializeNullableCollection(JsonReader reader,
Collection<Boolean> res) |
static void |
serialize(boolean[] value,
JsonWriter sw) |
static void |
serialize(boolean value,
JsonWriter sw) |
static void |
serializeNullable(Boolean value,
JsonWriter sw) |
public static final boolean[] EMPTY_ARRAY
public static final JsonReader.ReadObject<Boolean> READER
public static final JsonReader.ReadObject<Boolean> NULLABLE_READER
public static final JsonWriter.WriteObject<Boolean> WRITER
public static final JsonReader.ReadObject<boolean[]> ARRAY_READER
public static final JsonWriter.WriteObject<boolean[]> ARRAY_WRITER
public static void serializeNullable(@Nullable Boolean value, JsonWriter sw)
public static void serialize(boolean value,
JsonWriter sw)
public static void serialize(@Nullable boolean[] value, JsonWriter sw)
public static boolean deserialize(JsonReader reader) throws IOException
IOExceptionpublic static boolean[] deserializeBoolArray(JsonReader reader) throws IOException
IOExceptionpublic static ArrayList<Boolean> deserializeCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeCollection(JsonReader reader, Collection<Boolean> res) throws IOException
IOExceptionpublic static ArrayList<Boolean> deserializeNullableCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeNullableCollection(JsonReader reader, Collection<Boolean> res) throws IOException
IOExceptionCopyright © 2023. All rights reserved.