Package se.l4.commons.serialization.spi
Interface TypeEncounter
- All Known Implementing Classes:
TypeEncounterImpl
public interface TypeEncounter
Encounter with a specific type during serialization resolution.
- Author:
- Andreas Holstenson
-
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.
-
Method Details
-
getCollection
Get the collection this encounter is for.- Returns:
-
getType
Get the type encountered.- Returns:
-
getHint
Fetch a hint of the specific type if available.- Parameters:
type-- Returns:
- the hint if found, or
null
-