Record Class GenericType.ClassType
java.lang.Object
java.lang.Record
dev.archunitjava.model.GenericType.ClassType
- All Implemented Interfaces:
GenericType
- Enclosing interface:
GenericType
public static record GenericType.ClassType(Optional<GenericType.ClassType> owner, JvmReferenceType rawType, String simpleName, List<GenericTypeArgument> typeArguments)
extends Record
implements GenericType
A possibly parameterized class. For nested classes,
owner retains the generic
arguments on each enclosing segment while rawType is the full binary name.-
Nested Class Summary
Nested classes/interfaces inherited from interface GenericType
GenericType.ArrayType, GenericType.ClassType, GenericType.PrimitiveType, GenericType.TypeVariable, GenericType.VoidType -
Constructor Summary
ConstructorsConstructorDescriptionClassType(Optional<GenericType.ClassType> owner, JvmReferenceType rawType, String simpleName, List<GenericTypeArgument> typeArguments) Creates an instance of aClassTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.owner()Returns the value of theownerrecord component.rawType()Returns the value of therawTyperecord component.Returns the value of thesimpleNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeArgumentsrecord component.Methods inherited from interface GenericType
referencedTypes
-
Constructor Details
-
ClassType
public ClassType(Optional<GenericType.ClassType> owner, JvmReferenceType rawType, String simpleName, List<GenericTypeArgument> typeArguments) Creates an instance of aClassTyperecord class.- Parameters:
owner- the value for theownerrecord componentrawType- the value for therawTyperecord componentsimpleName- the value for thesimpleNamerecord componenttypeArguments- the value for thetypeArgumentsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
rawType
Returns the value of therawTyperecord component.- Returns:
- the value of the
rawTyperecord component
-
simpleName
Returns the value of thesimpleNamerecord component.- Returns:
- the value of the
simpleNamerecord component
-
typeArguments
Returns the value of thetypeArgumentsrecord component.- Returns:
- the value of the
typeArgumentsrecord component
-