Package yapion.serializing.api
Class SerializerMap<T extends java.util.Map<?,?>>
- java.lang.Object
- 
- yapion.serializing.api.SerializerBase<T,YAPIONMap>
- 
- yapion.serializing.api.SerializerMap<T>
 
 
- 
 public abstract class SerializerMap<T extends java.util.Map<?,?>> extends SerializerBase<T,YAPIONMap> 
- 
- 
Constructor SummaryConstructors Constructor Description SerializerMap()
 - 
Method SummaryModifier and Type Method Description voidadd()Add this ListSerializer to the SerializeManager by callingSerializeManager.add(SerializerBase).abstract Tdeserialize(DeserializeData<YAPIONMap> deserializeData)This method is used to deserialize the type defined bytype().abstract YAPIONMapserialize(SerializeData<T> serializeData)This method is used to serialize the type defined bytype().abstract java.lang.Class<T>type()Describes the Class type this Serializer should be used for by theYAPIONSerializerandYAPIONDeserializerthis Serializer will be used preferably as it should suite the Class better than the internal fallback.- 
Methods inherited from class yapion.serializing.api.SerializerBaseconvert
 
- 
 
- 
- 
- 
Method Detail- 
typepublic abstract java.lang.Class<T> type() Describes the Class type this Serializer should be used for by theYAPIONSerializerandYAPIONDeserializerthis Serializer will be used preferably as it should suite the Class better than the internal fallback.- Specified by:
- typein class- SerializerBase<T extends java.util.Map<?,?>,YAPIONMap>
- Returns:
- the Class Type this Serializer is for
 
 - 
serializepublic abstract YAPIONMap serialize(SerializeData<T> serializeData) This method is used to serialize the type defined bytype(). You will get the object to serialize as well as the currentYAPIONSerializerdesignated to this serialization. This serializer should be used to serialize any parts of theObjectthat are not primitive types. So anything that cannot be represented byYAPIONValue. To use the serializer callYAPIONSerializer.parse(Object). You will need to provide the Object and the YAPIONSerializer will provide you with anYAPIONAnyType. This is generic and can be anYAPIONObject,YAPIONMap,YAPIONArray,YAPIONPointerorYAPIONValue. So you should be able to handle any thing you can get or just handle it generically withYAPIONAnyTypeto be safe.- Specified by:
- serializein class- SerializerBase<T extends java.util.Map<?,?>,YAPIONMap>
- Parameters:
- serializeData- all data for serialization
- Returns:
- the serialized version of the inputted Object
 
 - 
deserializepublic abstract T deserialize(DeserializeData<YAPIONMap> deserializeData) This method is used to deserialize the type defined bytype(). You will get the specifiedYAPIONMapas well as the currentYAPIONDeserializerdesigned to this deserialization. This deserializer should be used to deserialize any parts of theYAPIONMapthat are notYAPIONValuetypes. So anything that cannot be represented byYAPIONValue. To use the serializer callYAPIONDeserializer.parse(YAPIONAnyType). You will need to provide theYAPIONAnyTypeand the YAPIONDeserializer will provide you with anObject. This is generic and can be any Object. So you should be able to handle any thing generically.- Specified by:
- deserializein class- SerializerBase<T extends java.util.Map<?,?>,YAPIONMap>
- Parameters:
- deserializeData- all data for deserialization
- Returns:
- the deserialized version of the inputted YAPIONMap
 
 - 
addpublic final void add() Add this ListSerializer to the SerializeManager by callingSerializeManager.add(SerializerBase).
 
- 
 
-