Record Class ProjectionEdgeSelector
java.lang.Object
java.lang.Record
dev.archunitjava.projection.ProjectionEdgeSelector
- All Implemented Interfaces:
Comparable<ProjectionEdgeSelector>
public record ProjectionEdgeSelector(StableId origin, StableId target, DependencyKind kind)
extends Record
implements Comparable<ProjectionEdgeSelector>
Exact raw edge selector for an explicit, reviewable exclusion.
-
Constructor Summary
ConstructorsConstructorDescriptionProjectionEdgeSelector(StableId origin, StableId target, DependencyKind kind) Creates an instance of aProjectionEdgeSelectorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ProjectionEdgeSelector other) 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.booleanmatches(DependencyEdge edge) origin()Returns the value of theoriginrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProjectionEdgeSelector
Creates an instance of aProjectionEdgeSelectorrecord class.- Parameters:
origin- the value for theoriginrecord componenttarget- the value for thetargetrecord componentkind- the value for thekindrecord component
-
-
Method Details
-
matches
-
compareTo
- Specified by:
compareToin interfaceComparable<ProjectionEdgeSelector>
-
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). -
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-