Interface MapDataFormat

All Superinterfaces:
DataFormat

public interface MapDataFormat extends DataFormat
An object that describes the data format of a map type.
Since:
1.0.0
  • Method Details

    • getType

      Type getType()
      Returns the Java type for this format.
      Specified by:
      getType in interface DataFormat
      Returns:
      the Java type for this format
    • getKeyFormat

      DataFormat getKeyFormat()
      Returns the format of the map key.
      Returns:
      the format of the map key
    • getElementFormat

      DataFormat getElementFormat()
      Returns the format of the map element.
      Returns:
      the format of the map element
    • of

      static MapDataFormat of(Type type, DataFormat keyFormat, DataFormat elementFormat)
      Returns a new map data format.
      Parameters:
      type - The collection type
      keyFormat - The key format
      elementFormat - The element format
      Returns:
      the map data format