org.qi4j.api.type
Class CollectionType

java.lang.Object
  extended by org.qi4j.api.type.ValueType
      extended by 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
CollectionType(java.lang.Class<?> type, ValueType collectedType)
           
 
Method Summary
 ValueType collectedType()
           
static CollectionType collectionOf(java.lang.Class<?> collectedType)
           
static boolean isCollection(java.lang.reflect.Type type)
           
static CollectionType listOf(java.lang.Class<?> collectedType)
           
static CollectionType setOf(java.lang.Class<?> collectedType)
           
 java.lang.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(java.lang.Class<?> type,
                      ValueType collectedType)
Method Detail

isCollection

public static boolean isCollection(java.lang.reflect.Type type)

collectionOf

public static CollectionType collectionOf(java.lang.Class<?> collectedType)

listOf

public static CollectionType listOf(java.lang.Class<?> collectedType)

setOf

public static CollectionType setOf(java.lang.Class<?> collectedType)

collectedType

public ValueType collectedType()

toString

public java.lang.String toString()
Overrides:
toString in class ValueType