Package org.javers.core.metamodel.type
Class JaversType
java.lang.Object
org.javers.core.metamodel.type.JaversType
- Direct Known Subclasses:
CustomType,EnumerableType,IgnoredType,ManagedType,PrimitiveOrValueType,TokenType
Managed property type
This is the convenient abstraction layer awkward java.lang.reflect.Type and java.lang.Class
This is the convenient abstraction layer awkward java.lang.reflect.Type and java.lang.Class
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuildListOfConcreteTypeArguments(Type baseJavaType, int expectedSize) abstract booleanbooleanbooleanUsed for comparing as ValuesFor generic types, returns a list of actual Class arguments.getName()JaversType name, clientsClass.name by default or value ofTypeNameannotation.inthashCode()booleanabstract booleanisInstance(Object cdo) final StringPrints this object to Stringprotected PrettyPrintBuilderprotected Object[]spawnConstructorArgs(Type baseJavaType) protected Class[]toString()
-
Field Details
-
DEFAULT_TYPE_PARAMETER
-
-
Method Details
-
spawnConstructorArgs
-
spawnConstructorArgTypes
-
isGenericType
public boolean isGenericType() -
getBaseJavaType
-
getName
JaversType name, clientsClass.name by default or value ofTypeNameannotation. -
isInstance
-
canBePrototype
public abstract boolean canBePrototype() -
equals
Used for comparing as Values -
equals
-
toString
-
hashCode
public int hashCode() -
getConcreteClassTypeArguments
For generic types, returns a list of actual Class arguments. For example, for Set<String>, returns String. Non-concrete (like ?) or missing type arguments like are defaulted to Object.
For array, returns List withClass.getComponentType() -
prettyPrint
Prints this object to String -
prettyPrintBuilder
-
buildListOfConcreteTypeArguments
-