Package org.javers.core.metamodel.type
Class CollectionType
java.lang.Object
org.javers.core.metamodel.type.JaversType
org.javers.core.metamodel.type.EnumerableType
org.javers.core.metamodel.type.ContainerType
org.javers.core.metamodel.type.CollectionType
- Direct Known Subclasses:
ListAsSetType,ListType,MultisetType,OptionalType,SetType
-
Field Summary
Fields inherited from class org.javers.core.metamodel.type.JaversType
DEFAULT_TYPE_PARAMETER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanempty()Class<?>protected TypeType for JSON representation.booleanbooleanisInstance(Object cdo) map(Object sourceEnumerable, EnumerableFunction mapFunction, OwnerContext owner) OwnerContext aware version ofEnumerableType.map(Object, EnumerableFunction, OwnerContext)protected ObjectmapToList(Object sourceEnumerable, EnumerableFunction mapFunction, OwnerContext owner) protected ObjectmapToSet(Object sourceEnumerable, EnumerableFunction mapFunction, OwnerContext owner) static CollectionMethods inherited from class org.javers.core.metamodel.type.ContainerType
getItemClass, getItemJavaType, getItemJaversTypeMethods inherited from class org.javers.core.metamodel.type.EnumerableType
filterToList, getConcreteClassTypeArguments, getTypeMapperLazy, map, mapPreservingSourceItemType, spawnConstructorArgs, spawnConstructorArgTypesMethods inherited from class org.javers.core.metamodel.type.JaversType
buildListOfConcreteTypeArguments, equals, equals, getBaseJavaType, getName, hashCode, isGenericType, prettyPrint, prettyPrintBuilder, toString
-
Constructor Details
-
CollectionType
-
-
Method Details
-
isEmpty
- Specified by:
isEmptyin classEnumerableType
-
map
Description copied from class:EnumerableTypeOwnerContext aware version ofEnumerableType.map(Object, EnumerableFunction, OwnerContext)- Specified by:
mapin classEnumerableType- Returns:
- immutable List
-
mapToList
protected Object mapToList(Object sourceEnumerable, EnumerableFunction mapFunction, OwnerContext owner) - Returns:
- immutable List
-
mapToSet
protected Object mapToSet(Object sourceEnumerable, EnumerableFunction mapFunction, OwnerContext owner) - Returns:
- immutable Set
-
map
- Specified by:
mapin classEnumerableType
-
empty
- Specified by:
emptyin classEnumerableType
-
items
- Specified by:
itemsin classEnumerableType
-
wrapNull
-
getEnumerableInterface
- Specified by:
getEnumerableInterfacein classEnumerableType
-
canBePrototype
public boolean canBePrototype()- Specified by:
canBePrototypein classJaversType
-
isInstance
- Specified by:
isInstancein classJaversType
-
getRawDehydratedType
Type for JSON representation. For Values it's simply baseJavaType. For ManagedTypes (references to Entities and ValueObjects) it's GlobalId because JaVers serializes references in the 'dehydrated' form. -
getBaseJavaClass
-