Package org.qaddict.algo
Record Class MaximumMatching<I,O>
java.lang.Object
java.lang.Record
org.qaddict.algo.MaximumMatching<I,O>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionMaximumMatching(Map<I, Collection<O>> edges, Map<O, I> pairing, Set<I> free) Creates an instance of aMaximumMatchingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionMap<I, Collection<O>> edges()Returns the value of theedgesrecord component.final booleanIndicates whether some other object is "equal to" this one.free()Returns the value of thefreerecord component.final inthashCode()Returns a hash code value for this object.static <I> MaximumMatching.Node<I> node(I i) pairing()Returns the value of thepairingrecord component.final StringtoString()Returns a string representation of this record class.update(I start, Collection<O> ends)
-
Constructor Details
-
MaximumMatching
public MaximumMatching() -
MaximumMatching
Creates an instance of aMaximumMatchingrecord class.- Parameters:
edges- the value for theedgesrecord componentpairing- the value for thepairingrecord componentfree- the value for thefreerecord component
-
-
Method Details
-
update
-
findImprovingPath
-
node
-
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). -
edges
Returns the value of theedgesrecord component.- Returns:
- the value of the
edgesrecord component
-
pairing
Returns the value of thepairingrecord component.- Returns:
- the value of the
pairingrecord component
-
free
Returns the value of thefreerecord component.- Returns:
- the value of the
freerecord component
-