Package org.javers.guava
Class MultimapType
- java.lang.Object
-
public class MultimapType extends KeyValueType
-
-
Field Summary
-
Fields inherited from class org.javers.core.metamodel.type.JaversType
DEFAULT_TYPE_PARAMETER
-
-
Constructor Summary
Constructors Constructor Description MultimapType(java.lang.reflect.Type baseJavaType, TypeMapperLazy typeMapperLazy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBePrototype()java.lang.Objectempty()protected java.util.stream.Stream<java.util.Map.Entry>entries(java.lang.Object source)java.lang.ClassgetBaseJavaClass()java.lang.Class<?>getEnumerableInterface()protected java.lang.reflect.TypegetRawDehydratedType()Type for JSON representation.booleanisEmpty(java.lang.Object container)booleanisInstance(java.lang.Object cdo)java.lang.Objectmap(java.lang.Object sourceEnumerable, java.util.function.Function mapFunction, boolean filterNulls)Nulls keys are filteredcom.google.common.collect.Multimapmap(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.KeyValueType
filterToList, getKeyJavaType, getKeyJaversType, getValueJavaType, getValueJaversType, items
-
Methods inherited from class org.javers.core.metamodel.type.EnumerableType
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
-
MultimapType
public MultimapType(java.lang.reflect.Type baseJavaType, TypeMapperLazy typeMapperLazy)
-
-
Method Detail
-
map
public com.google.common.collect.Multimap map(java.lang.Object sourceEnumerable, EnumerableFunction mapFunction, OwnerContext owner)Description copied from class:EnumerableTypeOwnerContext aware version ofEnumerableType.map(Object, EnumerableFunction, OwnerContext)- Specified by:
mapin classEnumerableType- Returns:
- immutable Multimap
-
isEmpty
public boolean isEmpty(java.lang.Object container)
- Specified by:
isEmptyin classEnumerableType
-
map
public java.lang.Object map(java.lang.Object sourceEnumerable, java.util.function.Function mapFunction, boolean filterNulls)Nulls keys are filtered- Specified by:
mapin classEnumerableType
-
entries
protected java.util.stream.Stream<java.util.Map.Entry> entries(java.lang.Object source)
- Specified by:
entriesin classKeyValueType
-
empty
public java.lang.Object empty()
- Specified by:
emptyin classEnumerableType
-
getEnumerableInterface
public java.lang.Class<?> getEnumerableInterface()
- Specified by:
getEnumerableInterfacein classEnumerableType
-
canBePrototype
public boolean canBePrototype()
- Specified by:
canBePrototypein classJaversType
-
isInstance
public boolean isInstance(java.lang.Object cdo)
- Specified by:
isInstancein 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()
-
-