Package org.javers.core.metamodel.type
Class PrimitiveType
- java.lang.Object
-
- org.javers.core.metamodel.type.JaversType
-
- org.javers.core.metamodel.type.PrimitiveOrValueType
-
- org.javers.core.metamodel.type.PrimitiveType
-
- All Implemented Interfaces:
CustomComparableType
public class PrimitiveType extends PrimitiveOrValueType
Primitive or primitive box
-
-
Field Summary
-
Fields inherited from class org.javers.core.metamodel.type.JaversType
DEFAULT_TYPE_PARAMETER
-
-
Constructor Summary
Constructors Constructor Description PrimitiveType(java.lang.reflect.Type baseJavaType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBePrototype()
java.lang.Class
getBaseJavaClass()
protected java.lang.reflect.Type
getRawDehydratedType()
Type for JSON representation.boolean
isInstance(java.lang.Object cdo)
java.lang.String
valueToString(java.lang.Object value)
-
Methods inherited from class org.javers.core.metamodel.type.PrimitiveOrValueType
equals, hasCustomValueComparator, isBoolean, isJsonPrimitive, isNumber, isStringy, prettyPrintBuilder
-
Methods inherited from class org.javers.core.metamodel.type.JaversType
equals, getBaseJavaType, getConcreteClassTypeArguments, getName, hashCode, isGenericType, prettyPrint, toString
-
-
-
-
Method Detail
-
valueToString
public java.lang.String valueToString(java.lang.Object value)
-
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()
-
-