com.dslplatform.json
Class BoolConverter

java.lang.Object
  extended by com.dslplatform.json.BoolConverter

public abstract class BoolConverter
extends Object


Field Summary
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 Summary
BoolConverter()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

public static final boolean[] EMPTY_ARRAY

READER

public static final JsonReader.ReadObject<Boolean> READER

NULLABLE_READER

public static final JsonReader.ReadObject<Boolean> NULLABLE_READER

WRITER

public static final JsonWriter.WriteObject<Boolean> WRITER

ARRAY_READER

public static final JsonReader.ReadObject<boolean[]> ARRAY_READER

ARRAY_WRITER

public static final JsonWriter.WriteObject<boolean[]> ARRAY_WRITER
Constructor Detail

BoolConverter

public BoolConverter()
Method Detail

serializeNullable

public static void serializeNullable(@Nullable
                                     Boolean value,
                                     JsonWriter sw)

serialize

public static void serialize(boolean value,
                             JsonWriter sw)

serialize

public static void serialize(@Nullable
                             boolean[] value,
                             JsonWriter sw)

deserialize

public static boolean deserialize(JsonReader reader)
                           throws IOException
Throws:
IOException

deserializeBoolArray

public static boolean[] deserializeBoolArray(JsonReader reader)
                                      throws IOException
Throws:
IOException

deserializeCollection

public static ArrayList<Boolean> deserializeCollection(JsonReader reader)
                                                throws IOException
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


Copyright © 2019. All rights reserved.