Enum Class MapFormat.MapTransformation

java.lang.Object
java.lang.Enum<MapFormat.MapTransformation>
io.micronaut.core.convert.format.MapFormat.MapTransformation
All Implemented Interfaces:
Serializable, Comparable<MapFormat.MapTransformation>, Constable
Enclosing class:
MapFormat

public static enum MapFormat.MapTransformation extends Enum<MapFormat.MapTransformation>
Specifies the type of the map that should be injected.
  • Enum Constant Details

    • NESTED

      public static final MapFormat.MapTransformation NESTED
      A nested map has the any keys such as foo.bar transformed into a structure that is a map of maps such as JSON.
    • FLAT

      public static final MapFormat.MapTransformation FLAT
      A flat map has the keys flattened such that foo.bar is a single map.
  • Method Details

    • values

      public static MapFormat.MapTransformation[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MapFormat.MapTransformation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null