Record Class JavaTypeName
java.lang.Object
java.lang.Record
dev.archunitjava.model.JavaTypeName
- All Implemented Interfaces:
Comparable<JavaTypeName>
Canonical binary name plus honest top-level source-name derivations.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaTypeName(String binaryName) Creates an instance of aJavaTypeNamerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebinaryNamerecord component.intcompareTo(JavaTypeName other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Source-style qualified name for a top-level type.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JavaTypeName
Creates an instance of aJavaTypeNamerecord class.- Parameters:
binaryName- the value for thebinaryNamerecord component
-
-
Method Details
-
sourceName
Source-style qualified name for a top-level type. Nested names are enriched later. -
packageName
-
simpleName
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaTypeName>
-
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). -
binaryName
Returns the value of thebinaryNamerecord component.- Returns:
- the value of the
binaryNamerecord component
-