Record Class JvmArrayType
java.lang.Object
java.lang.Record
dev.archunitjava.model.JvmArrayType
- All Implemented Interfaces:
JvmType
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJvmArrayType(JvmType elementType, int dimensions) Creates an instance of aJvmArrayTyperecord 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.
-
Field Details
-
MAXIMUM_DIMENSIONS
public static final int MAXIMUM_DIMENSIONS- See Also:
-
-
Constructor Details
-
JvmArrayType
Creates an instance of aJvmArrayTyperecord class.- Parameters:
elementType- the value for theelementTyperecord componentdimensions- the value for thedimensionsrecord component
-
-
Method Details
-
descriptor
- Specified by:
descriptorin interfaceJvmType
-
displayName
- Specified by:
displayNamein interfaceJvmType
-
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
-