Interface TypeEncounter

All Known Implementing Classes:
TypeEncounterImpl

public interface TypeEncounter
Encounter with a specific type during serialization resolution.
Author:
Andreas Holstenson
  • Method Details

    • getCollection

      @NonNull SerializerCollection getCollection()
      Get the collection this encounter is for.
      Returns:
    • getType

      @NonNull Type getType()
      Get the type encountered.
      Returns:
    • getHint

      @Nullable <T extends Annotation> T getHint​(@NonNull Class<T> type)
      Fetch a hint of the specific type if available.
      Parameters:
      type -
      Returns:
      the hint if found, or null