Package org.javers.core.metamodel.type
Class PrimitiveOrValueType<T>
java.lang.Object
org.javers.core.metamodel.type.JaversType
org.javers.core.metamodel.type.PrimitiveOrValueType<T>
- All Implemented Interfaces:
CustomComparableType
- Direct Known Subclasses:
PrimitiveType,ValueType
-
Field Summary
Fields inherited from class org.javers.core.metamodel.type.JaversType
DEFAULT_TYPE_PARAMETER -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanUsed for comparing as Valuesprotected TypeType for JSON representation.booleanbooleanbooleanisInstance(Object cdo) booleanbooleanisNumber()booleanprotected PrettyPrintBuilderMethods inherited from class org.javers.core.metamodel.type.JaversType
buildListOfConcreteTypeArguments, equals, getBaseJavaType, getConcreteClassTypeArguments, getName, hashCode, isGenericType, prettyPrint, spawnConstructorArgs, spawnConstructorArgTypes, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.javers.core.metamodel.type.CustomComparableType
valueToString
-
Method Details
-
hasCustomValueComparator
public boolean hasCustomValueComparator()- Specified by:
hasCustomValueComparatorin interfaceCustomComparableType
-
equals
Description copied from class:JaversTypeUsed for comparing as Values- Overrides:
equalsin classJaversType
-
isNumber
public boolean isNumber() -
isBoolean
public boolean isBoolean() -
isStringy
public boolean isStringy() -
isJsonPrimitive
public boolean isJsonPrimitive() -
prettyPrintBuilder
- Overrides:
prettyPrintBuilderin classJaversType
-
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
-