Record Class DroppedProjectionEdge
java.lang.Object
java.lang.Record
dev.archunitjava.projection.DroppedProjectionEdge
- All Implemented Interfaces:
Comparable<DroppedProjectionEdge>
public record DroppedProjectionEdge(DependencyEdge edge, ProjectionDropReason reason)
extends Record
implements Comparable<DroppedProjectionEdge>
One omitted raw edge and its deterministic reason.
-
Constructor Summary
ConstructorsConstructorDescriptionDroppedProjectionEdge(DependencyEdge edge, ProjectionDropReason reason) Creates an instance of aDroppedProjectionEdgerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(DroppedProjectionEdge other) edge()Returns the value of theedgerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DroppedProjectionEdge
Creates an instance of aDroppedProjectionEdgerecord class.- Parameters:
edge- the value for theedgerecord componentreason- the value for thereasonrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<DroppedProjectionEdge>
-
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). -
edge
Returns the value of theedgerecord component.- Returns:
- the value of the
edgerecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-