Package ch.so.agi.mcp.constraint
Record Class NavigationGraphSynthesizer.Binding
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.NavigationGraphSynthesizer.Binding
- Enclosing class:
NavigationGraphSynthesizer
public static record NavigationGraphSynthesizer.Binding(ConstraintModelSynthesizer.ModelBinding modelBinding, String countKey, boolean collection, String routeTargetFqn)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBinding(ConstraintModelSynthesizer.ModelBinding modelBinding, String countKey, boolean collection, String routeTargetFqn) Creates an instance of aBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecollectionrecord component.countKey()Returns the value of thecountKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themodelBindingrecord component.Returns the value of therouteTargetFqnrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Binding
public Binding(ConstraintModelSynthesizer.ModelBinding modelBinding, String countKey, boolean collection, String routeTargetFqn) Creates an instance of aBindingrecord class.- Parameters:
modelBinding- the value for themodelBindingrecord componentcountKey- the value for thecountKeyrecord componentcollection- the value for thecollectionrecord componentrouteTargetFqn- the value for therouteTargetFqnrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
modelBinding
Returns the value of themodelBindingrecord component.- Returns:
- the value of the
modelBindingrecord component
-
countKey
Returns the value of thecountKeyrecord component.- Returns:
- the value of the
countKeyrecord component
-
collection
public boolean collection()Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-
routeTargetFqn
Returns the value of therouteTargetFqnrecord component.- Returns:
- the value of the
routeTargetFqnrecord component
-