org.qi4j.api.type

## Class CollectionType

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

- All Implemented Interfaces:
    HasTypes

      public final class CollectionType
      extends ValueType

  Collection ValueType.

  This handles Collection, List and Set types.

- - ### Field Summary

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

      `types`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CollectionType(Class<?> type, ValueType collectedType)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ValueType` | `collectedType()`
    `static CollectionType` | `collectionOf(Class<?> collectedType)`
    `static boolean` | `isCollection(Type type)`
    `static CollectionType` | `listOf(Class<?> collectedType)`
    `static CollectionType` | `setOf(Class<?> collectedType)`
    `String` | `toString()`

    - ### 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

    - #### CollectionType

          public CollectionType(Class<?> type,
                        ValueType collectedType)

  - ### Method Detail

    - #### isCollection

          public static boolean isCollection(Type type)

    - #### collectionOf

          public static CollectionType collectionOf(Class<?> collectedType)

    - #### listOf

          public static CollectionType listOf(Class<?> collectedType)

    - #### setOf

          public static CollectionType setOf(Class<?> collectedType)

    - #### collectedType

          public ValueType collectedType()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `ValueType`