org.qi4j.api.type

## Class MapType

- java.lang.Object
- - org.qi4j.api.type.ValueType
  - - org.qi4j.api.type.MapType

- All Implemented Interfaces:
    HasTypes

      public final class MapType
      extends ValueType

  Map ValueType.

  This handles instances of Map.

- - ### Field Summary

    - ### Fields inherited from class org.qi4j.api.type.ValueType

      `types`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MapType(Class<?> type, ValueType keyType, ValueType valueType)`
    `MapType(Class<?> type, ValueType keyType, ValueType valueType, Serialization.Variant variant)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | `isMap(Type type)`
    `ValueType` | `keyType()`
    `static MapType` | `of(Class<?> keyType, Class<?> valueType)`
    `static MapType` | `of(Class<?> keyType, Class<?> valueType, Serialization.Variant variant)`
    `String` | `toString()`
    `ValueType` | `valueType()`
    `Serialization.Variant` | `variant()`

    - ### Methods inherited from class org.qi4j.api.type.ValueType

      `isPrimitiveValue, isPrimitiveValueType, isPrimitiveValueType, mainType, of, types`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### MapType

          public MapType(Class<?> type,
                 ValueType keyType,
                 ValueType valueType)

    - #### MapType

          public MapType(Class<?> type,
                 ValueType keyType,
                 ValueType valueType,
                 Serialization.Variant variant)

  - ### Method Detail

    - #### isMap

          public static boolean isMap(Type type)

    - #### of

          public static MapType of(Class<?> keyType,
                   Class<?> valueType)

    - #### of

          public static MapType of(Class<?> keyType,
                   Class<?> valueType,
                   Serialization.Variant variant)

    - #### keyType

          public ValueType keyType()

    - #### valueType

          public ValueType valueType()

    - #### variant

          public Serialization.Variant variant()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `ValueType`