Interface Json.EnumMapping<T>

Type Parameters:
T - the enumeration type to map
Enclosing class:
Json

public static interface Json.EnumMapping<T>
Specifies the mapping of an enumeration for serialization/deserialization.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addMapping(String name, T value)
    Adds a mapping.
    Returns the enum type.
  • Method Details

    • addMapping

      void addMapping(String name, T value)
      Adds a mapping.
      Parameters:
      name - the name
      value - the mapped value
    • getType

      Class<T> getType()
      Returns the enum type.
      Returns:
      the enum type