Package org.javers.core.metamodel.type
Class ArrayType
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.ArrayType
-
Field Summary
Fields inherited from class org.javers.core.metamodel.type.JaversType
DEFAULT_TYPE_PARAMETER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanempty()booleanUsed for comparing as ValuesFor generic types, returns a list of actual Class arguments.Class<?>protected TypeType for JSON representation.booleanbooleanisInstance(Object cdo) map(Object sourceArray, EnumerableFunction mapFunction, OwnerContext owner) OwnerContext aware version ofEnumerableType.map(Object, EnumerableFunction, OwnerContext)mapPreservingSourceItemType(Object sourceArray, Function mapFunction) For building Shadows.Methods inherited from class org.javers.core.metamodel.type.ContainerType
getItemClass, getItemJavaType, getItemJaversTypeMethods inherited from class org.javers.core.metamodel.type.EnumerableType
filterToList, getTypeMapperLazy, map, spawnConstructorArgs, spawnConstructorArgTypesMethods inherited from class org.javers.core.metamodel.type.JaversType
buildListOfConcreteTypeArguments, equals, getBaseJavaType, getName, hashCode, isGenericType, prettyPrint, prettyPrintBuilder, toString
-
Constructor Details
-
ArrayType
-
-
Method Details
-
getConcreteClassTypeArguments
Description copied from class:JaversTypeFor generic types, returns a list of actual Class arguments. For example, for Set<String>, returns String. Non-concrete (like ?) or missing type arguments like are defaulted to Object.
For array, returns List withClass.getComponentType()- Overrides:
getConcreteClassTypeArgumentsin classEnumerableType
-
map
Description copied from class:EnumerableTypeOwnerContext aware version ofEnumerableType.map(Object, EnumerableFunction, OwnerContext)- Specified by:
mapin classEnumerableType- Returns:
- immutable Enumerable
-
isEmpty
- Specified by:
isEmptyin classEnumerableType
-
map
- Specified by:
mapin classEnumerableType
-
mapPreservingSourceItemType
Description copied from class:EnumerableTypeFor building Shadows. Item type of new enumerable matters only for arrays- Overrides:
mapPreservingSourceItemTypein classEnumerableType
-
items
- Specified by:
itemsin classEnumerableType
-
equals
Description copied from class:JaversTypeUsed for comparing as Values- Overrides:
equalsin classJaversType
-
empty
- Specified by:
emptyin classEnumerableType
-
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
-