Record Class CycleDetection.Edge
java.lang.Object
java.lang.Record
org.jdrupes.builder.core.CycleDetection.Edge
- Enclosing class:
CycleDetection
public static record CycleDetection.Edge(ProviderInvocation<?> caller, ProviderInvocation<?> callee)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEdge(ProviderInvocation<?> caller, ProviderInvocation<?> callee) Creates an instance of aEdgerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncallee()Returns the value of thecalleerecord component.caller()Returns the value of thecallerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Edge
Creates an instance of aEdgerecord class.- Parameters:
caller- the value for thecallerrecord componentcallee- the value for thecalleerecord component
-
-
Method Details
-
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). -
caller
Returns the value of thecallerrecord component.- Returns:
- the value of the
callerrecord component
-
callee
Returns the value of thecalleerecord component.- Returns:
- the value of the
calleerecord component
-