Class Matching
Create a new Matching instance. Optionally specify the property used to
store partner links in target objects.
Constructor
-
class Matching([propname])
Arguments: |
- propname (String) – The name of the property which should be used
on a tree.Node to store a reference to its partner.
|
Methods
get
-
Matching#get(obj)
Arguments: |
- obj (object) – The tree node whose partner should be returned.
|
Returns object: | The object associated with the given tree node.
|
Return the partner of given object.
put
-
Matching#put(a, b)
Arguments: |
- a (object) – The first candidate for the new pair.
- b (object) – The second candidate for the new pair.
|
Associate the given objects.