Package org.javers.core.metamodel.type
Class PrimitiveOrValueType
- java.lang.Object
-
- org.javers.core.metamodel.type.JaversType
-
- org.javers.core.metamodel.type.PrimitiveOrValueType
-
- Direct Known Subclasses:
PrimitiveType,ValueType
public abstract class PrimitiveOrValueType extends JaversType
-
-
Field Summary
-
Fields inherited from class org.javers.core.metamodel.type.JaversType
DEFAULT_TYPE_PARAMETER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancanBePrototype()booleanequals(java.lang.Object left, java.lang.Object right)Used for comparing as Valuesjava.lang.ClassgetBaseJavaClass()protected java.lang.reflect.TypegetRawDehydratedType()Type for JSON representation.booleanisBoolean()booleanisInstance(java.lang.Object cdo)booleanisJsonPrimitive()booleanisNumber()booleanisStringy()abstract java.lang.StringsmartToString(java.lang.Object value)-
Methods inherited from class org.javers.core.metamodel.type.JaversType
equals, getBaseJavaType, getConcreteClassTypeArguments, getName, hashCode, isGenericType, prettyPrint, prettyPrintBuilder, toString
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object left, java.lang.Object right)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()
-
smartToString
public abstract java.lang.String smartToString(java.lang.Object value)
-
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()
-
-