Record Class DeclarationDependencySource
java.lang.Object
java.lang.Record
dev.archunitjava.model.DeclarationDependencySource
- All Implemented Interfaces:
Comparable<DeclarationDependencySource>
public record DeclarationDependencySource(DeclarationDependencySourceKind kind, DeclarationDependencyOwner owner, String classFileValue, String detail, int arrayDimensions, Optional<AnnotationSite> annotationSite, DeclarationLocation location)
extends Record
implements Comparable<DeclarationDependencySource>
One exact class-file value and owning declaration that produced a dependency.
-
Constructor Summary
ConstructorsConstructorDescriptionDeclarationDependencySource(DeclarationDependencySourceKind kind, DeclarationDependencyOwner owner, String classFileValue, String detail, int arrayDimensions, Optional<AnnotationSite> annotationSite, DeclarationLocation location) Creates an instance of aDeclarationDependencySourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationSiterecord component.intReturns the value of thearrayDimensionsrecord component.Returns the value of theclassFileValuerecord component.intdetail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.location()Returns the value of thelocationrecord component.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeclarationDependencySource
public DeclarationDependencySource(DeclarationDependencySourceKind kind, DeclarationDependencyOwner owner, String classFileValue, String detail, int arrayDimensions, Optional<AnnotationSite> annotationSite, DeclarationLocation location) Creates an instance of aDeclarationDependencySourcerecord class.- Parameters:
kind- the value for thekindrecord componentowner- the value for theownerrecord componentclassFileValue- the value for theclassFileValuerecord componentdetail- the value for thedetailrecord componentarrayDimensions- the value for thearrayDimensionsrecord componentannotationSite- the value for theannotationSiterecord componentlocation- the value for thelocationrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<DeclarationDependencySource>
-
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. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
classFileValue
Returns the value of theclassFileValuerecord component.- Returns:
- the value of the
classFileValuerecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-
arrayDimensions
public int arrayDimensions()Returns the value of thearrayDimensionsrecord component.- Returns:
- the value of the
arrayDimensionsrecord component
-
annotationSite
Returns the value of theannotationSiterecord component.- Returns:
- the value of the
annotationSiterecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-