Record Class TypeOwner
java.lang.Object
java.lang.Record
dev.archunitjava.model.TypeOwner
- All Implemented Interfaces:
Comparable<TypeOwner>
Package ownership for a top-level type; an empty name denotes the unnamed package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepackageNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TypeOwner
Creates an instance of aTypeOwnerrecord class.- Parameters:
packageName- the value for thepackageNamerecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<TypeOwner>
-
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). -
packageName
Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-