com.isti.util
Class TwoObjectMatcher

java.lang.Object
  extended bycom.isti.util.TwoObjectMatcher

public class TwoObjectMatcher
extends java.lang.Object

Class TwoObjectMatcher manages a set of object pairs and provides a fast comparison match vs. a given pair.


Constructor Summary
TwoObjectMatcher()
           
 
Method Summary
 void add(java.lang.Object obj1, java.lang.Object obj2)
          Adds the given pair of objects to this matcher.
 boolean contains(java.lang.Object obj1, java.lang.Object obj2)
          Checks if the given pair objects is held by this matcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoObjectMatcher

public TwoObjectMatcher()
Method Detail

add

public void add(java.lang.Object obj1,
                java.lang.Object obj2)
Adds the given pair of objects to this matcher.

Parameters:
obj1 - the first object to use.
obj2 - the second object to use.

contains

public boolean contains(java.lang.Object obj1,
                        java.lang.Object obj2)
Checks if the given pair objects is held by this matcher.

Parameters:
obj1 - the first object to use.
obj2 - the second object to use.
Returns:
true if the given pair objects is held by this matcher, false if not.