Class TypeEncounterImpl
java.lang.Object
se.l4.commons.serialization.internal.TypeEncounterImpl
- All Implemented Interfaces:
TypeEncounter
public class TypeEncounterImpl extends Object implements TypeEncounter
Implementation of
TypeEncounter.- Author:
- Andreas Holstenson
-
Constructor Summary
Constructors Constructor Description TypeEncounterImpl(SerializerCollection collection, Type type, List<Annotation> annotations) -
Method Summary
Modifier and Type Method Description SerializerCollectiongetCollection()Get the collection this encounter is for.<T extends Annotation>
TgetHint(Class<T> type)Fetch a hint of the specific type if available.TypegetType()Get the type encountered.
-
Constructor Details
-
Method Details
-
getCollection
Description copied from interface:TypeEncounterGet the collection this encounter is for.- Specified by:
getCollectionin interfaceTypeEncounter- Returns:
-
getHint
Description copied from interface:TypeEncounterFetch a hint of the specific type if available.- Specified by:
getHintin interfaceTypeEncounter- Returns:
- the hint if found, or
null
-
getType
Description copied from interface:TypeEncounterGet the type encountered.- Specified by:
getTypein interfaceTypeEncounter- Returns:
-