CollectionPageSerializer Class

  • java.lang.Object
    • com.microsoft.graph.serializer.CollectionPageSerializer

public class CollectionPageSerializer

Specialized serializer to handle collection pages

Method Summary

Modifier and Type Method and Description
static BaseCollectionPage<T1,T2> <T1,T2>deserialize(JsonElement json, Type typeOfT, ILogger logger)

Deserializes the JsonElement

static com.google.gson.JsonElement <T1,T2>serialize(BaseCollectionPage<T1,T2> src, ILogger logger)

Serializes an CollectionPage

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

<T1,T2>deserialize

public static BaseCollectionPage deserialize(JsonElement json, Type typeOfT, ILogger logger)

Deserializes the JsonElement

Parameters:

json - the source CollectionPage's Json
typeOfT - The type of the CollectionPage to deserialize to
logger - the logger

Returns:

the deserialized CollectionPage

Throws:

com.google.gson.JsonParseException - the parse exception

<T1,T2>serialize

public static JsonElement serialize(BaseCollectionPage src, ILogger logger)

Serializes an CollectionPage

Parameters:

src - the CollectionPage variable for serialization
logger - the logger

Returns:

JsonElement of CollectionPage

Applies to