Package org.javers.core.metamodel.type
Class MapType
java.lang.Object
org.javers.core.metamodel.type.JaversType
org.javers.core.metamodel.type.EnumerableType
org.javers.core.metamodel.type.KeyValueType
org.javers.core.metamodel.type.MapType
-
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)static voidmapEntrySet(KeyValueType keyValueType, Collection<Map.Entry<?, ?>> sourceEntries, Function mapFunction, BiConsumer entryConsumer, boolean filterNulls) static voidmapEntrySet(KeyValueType keyValueType, Collection<Map.Entry<?, ?>> sourceEntries, EnumerableFunction mapFunction, MapEnumerationOwnerContext mapEnumerationContext, BiConsumer entryConsumer, boolean filterNulls) Methods inherited from class org.javers.core.metamodel.type.KeyValueType
filterToList, getKeyJavaType, getKeyJaversType, getValueJavaType, getValueJaversType, itemsMethods inherited from class org.javers.core.metamodel.type.EnumerableType
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
-
MapType
-
-
Method Details
-
map
Description copied from class:EnumerableTypeOwnerContext aware version ofEnumerableType.map(Object, EnumerableFunction, OwnerContext)- Specified by:
mapin classEnumerableType- Returns:
- immutable Map
-
map
- Specified by:
mapin classEnumerableType
-
isEmpty
- Specified by:
isEmptyin classEnumerableType
-
mapEntrySet
public static void mapEntrySet(KeyValueType keyValueType, Collection<Map.Entry<?, ?>> sourceEntries, EnumerableFunction mapFunction, MapEnumerationOwnerContext mapEnumerationContext, BiConsumer entryConsumer, boolean filterNulls) -
mapEntrySet
public static void mapEntrySet(KeyValueType keyValueType, Collection<Map.Entry<?, ?>> sourceEntries, Function mapFunction, BiConsumer entryConsumer, boolean filterNulls) -
empty
- Specified by:
emptyin classEnumerableType
-
entries
- Specified by:
entriesin classKeyValueType
-
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
-