Package org.javers.core.metamodel.type
Class ListType
- java.lang.Object
-
public class ListType extends CollectionType
-
-
Field Summary
-
Fields inherited from class org.javers.core.metamodel.type.JaversType
DEFAULT_TYPE_PARAMETER
-
-
Constructor Summary
Constructors Constructor Description ListType(java.lang.reflect.Type baseJavaType, TypeMapperLazy typeMapperLazy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBePrototype()
java.lang.Class
getBaseJavaClass()
java.lang.Class<?>
getEnumerableInterface()
protected java.lang.reflect.Type
getRawDehydratedType()
Type for JSON representation.boolean
isInstance(java.lang.Object cdo)
java.lang.Object
map(java.lang.Object sourceEnumerable, java.util.function.Function mapFunction, boolean filterNulls)
java.lang.Object
map(java.lang.Object sourceEnumerable, EnumerableFunction mapFunction, OwnerContext owner)
OwnerContext aware version ofEnumerableType.map(Object, EnumerableFunction, OwnerContext)
-
Methods inherited from class org.javers.core.metamodel.type.CollectionType
empty, isEmpty, items, mapToList, mapToSet, wrapNull
-
Methods inherited from class org.javers.core.metamodel.type.ContainerType
getItemClass, getItemJavaType, getItemJaversType
-
Methods inherited from class org.javers.core.metamodel.type.EnumerableType
filterToList, getTypeMapperLazy, map, spawnConstructorArgs, spawnConstructorArgTypes
-
Methods inherited from class org.javers.core.metamodel.type.JaversType
equals, equals, getBaseJavaType, getConcreteClassTypeArguments, getName, hashCode, isGenericType, prettyPrint, prettyPrintBuilder, toString
-
-
-
-
Constructor Detail
-
ListType
public ListType(java.lang.reflect.Type baseJavaType, TypeMapperLazy typeMapperLazy)
-
-
Method Detail
-
map
public java.lang.Object map(java.lang.Object sourceEnumerable, EnumerableFunction mapFunction, OwnerContext owner)
Description copied from class:EnumerableType
OwnerContext aware version ofEnumerableType.map(Object, EnumerableFunction, OwnerContext)
- Overrides:
map
in classCollectionType
- Returns:
- immutable List
-
map
public java.lang.Object map(java.lang.Object sourceEnumerable, java.util.function.Function mapFunction, boolean filterNulls)
- Overrides:
map
in classCollectionType
-
getEnumerableInterface
public java.lang.Class<?> getEnumerableInterface()
- Overrides:
getEnumerableInterface
in classCollectionType
-
canBePrototype
public boolean canBePrototype()
- Specified by:
canBePrototype
in classJaversType
-
isInstance
public boolean isInstance(java.lang.Object cdo)
- Specified by:
isInstance
in classJaversType
-
getRawDehydratedType
protected java.lang.reflect.Type 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
public java.lang.Class getBaseJavaClass()
-
-