Algorithm
Development Kit 1.0

algs.model.network.matching
Class Pair

java.lang.Object
  extended by algs.model.network.matching.Pair

public class Pair
extends java.lang.Object

Represents a matching from the potential set of vertices in S and T.

Since:
1.0
Version:
1.0, 6/15/08
Author:
George Heineman

Field Summary
 java.lang.Object element
          Element from set S.
 java.lang.Object match
          Matching element from set T.
 
Constructor Summary
Pair(java.lang.Object element, java.lang.Object match)
          Construct the (element, match) relationship.
 
Method Summary
 boolean equals(java.lang.Object o)
          Standard equals method.
 java.lang.String toString()
          Standard toString method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

element

public final java.lang.Object element
Element from set S.


match

public final java.lang.Object match
Matching element from set T.

Constructor Detail

Pair

public Pair(java.lang.Object element,
            java.lang.Object match)
Construct the (element, match) relationship.

Parameters:
element - element from set S
match - matched element from set T
Method Detail

equals

public boolean equals(java.lang.Object o)
Standard equals method.

Overrides:
equals in class java.lang.Object
Parameters:
o - the Pair object being compared against.

toString

public java.lang.String toString()
Standard toString method.

Overrides:
toString in class java.lang.Object

Algorithm Development Kit 1.0

This code supports the Algorithms in a Nutshell book, published by O'Reilly Media, Inc. in November 2008. Please visit the book web page to learn of any changes to the code repository or to record a potential defect.