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
  • Method Details

    • hasCustomValueComparator

      public boolean hasCustomValueComparator()
      Specified by:
      hasCustomValueComparator in interface CustomComparableType
    • equals

      public boolean equals(Object left, Object right)
      Description copied from class: JaversType
      Used for comparing as Values
      Overrides:
      equals in class JaversType
    • isNumber

      public boolean isNumber()
    • isBoolean

      public boolean isBoolean()
    • isStringy

      public boolean isStringy()
    • isJsonPrimitive

      public boolean isJsonPrimitive()
    • prettyPrintBuilder

      protected PrettyPrintBuilder prettyPrintBuilder()
      Overrides:
      prettyPrintBuilder in class JaversType
    • canBePrototype

      public boolean canBePrototype()
      Specified by:
      canBePrototype in class JaversType
    • isInstance

      public boolean isInstance(Object cdo)
      Specified by:
      isInstance in class JaversType
    • getRawDehydratedType

      protected 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 Class getBaseJavaClass()