Record Class JoinResolution.Alternative
java.lang.Object
java.lang.Record
com.darkcollective.relix.symbol.graph.JoinResolution.Alternative
- Record Components:
label- the relationship name(s) traversed; the speakable choicedescription- a one-line summary of the join condition(s)program- the runnable Relix assembling this pathbounds- the multiplicity facts of this path
- Enclosing interface:
JoinResolution
public static record JoinResolution.Alternative(String label, String description, String program, JoinResolution.BoundsFacts bounds)
extends Record
One enumerated join, distinguished by relationship name — the ambiguity is
speakable only because edges are named.
-
Constructor Summary
ConstructorsConstructorDescriptionAlternative(String label, String description, String program, JoinResolution.BoundsFacts bounds) Creates an instance of aAlternativerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.program()Returns the value of theprogramrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Alternative
public Alternative(String label, String description, String program, JoinResolution.BoundsFacts bounds) Creates an instance of aAlternativerecord class.- Parameters:
label- the value for thelabelrecord componentdescription- the value for thedescriptionrecord componentprogram- the value for theprogramrecord componentbounds- the value for theboundsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
program
Returns the value of theprogramrecord component.- Returns:
- the value of the
programrecord component
-
bounds
Returns the value of theboundsrecord component.- Returns:
- the value of the
boundsrecord component
-