Record Class GenericType.ArrayType
java.lang.Object
java.lang.Record
dev.archunitjava.model.GenericType.ArrayType
- All Implemented Interfaces:
GenericType
- Enclosing interface:
GenericType
public static record GenericType.ArrayType(GenericType elementType, int dimensions)
extends Record
implements GenericType
-
Nested Class Summary
Nested classes/interfaces inherited from interface GenericType
GenericType.ArrayType, GenericType.ClassType, GenericType.PrimitiveType, GenericType.TypeVariable, GenericType.VoidType -
Constructor Summary
ConstructorsConstructorDescriptionArrayType(GenericType elementType, int dimensions) Creates an instance of aArrayTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedimensionsrecord component.Returns the value of theelementTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from interface GenericType
referencedTypes
-
Constructor Details
-
ArrayType
Creates an instance of aArrayTyperecord class.- Parameters:
elementType- the value for theelementTyperecord componentdimensions- the value for thedimensionsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
elementType
Returns the value of theelementTyperecord component.- Returns:
- the value of the
elementTyperecord component
-
dimensions
public int dimensions()Returns the value of thedimensionsrecord component.- Returns:
- the value of the
dimensionsrecord component
-