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
public abstract class PrimitiveOrValueType<T> extends JaversType implements CustomComparableType
-
-
Field Summary
-
Fields inherited from class org.javers.core.metamodel.type.JaversType
DEFAULT_TYPE_PARAMETER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBePrototype()
boolean
equals(java.lang.Object left, java.lang.Object right)
Used for comparing as Valuesjava.lang.Class
getBaseJavaClass()
protected java.lang.reflect.Type
getRawDehydratedType()
Type for JSON representation.boolean
hasCustomValueComparator()
boolean
isBoolean()
boolean
isInstance(java.lang.Object cdo)
boolean
isJsonPrimitive()
boolean
isNumber()
boolean
isStringy()
protected PrettyPrintBuilder
prettyPrintBuilder()
-
Methods inherited from class org.javers.core.metamodel.type.JaversType
equals, getBaseJavaType, getConcreteClassTypeArguments, getName, hashCode, isGenericType, prettyPrint, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.javers.core.metamodel.type.CustomComparableType
valueToString
-
-
-
-
Method Detail
-
hasCustomValueComparator
public boolean hasCustomValueComparator()
- Specified by:
hasCustomValueComparator
in interfaceCustomComparableType
-
equals
public boolean equals(java.lang.Object left, java.lang.Object right)
Description copied from class:JaversType
Used for comparing as Values- Overrides:
equals
in classJaversType
-
isNumber
public boolean isNumber()
-
isBoolean
public boolean isBoolean()
-
isStringy
public boolean isStringy()
-
isJsonPrimitive
public boolean isJsonPrimitive()
-
prettyPrintBuilder
protected PrettyPrintBuilder prettyPrintBuilder()
- Overrides:
prettyPrintBuilder
in classJaversType
-
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()
-
-