public class TwoObjectMatcher
extends java.lang.Object
Constructor and Description |
---|
TwoObjectMatcher() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object obj1,
java.lang.Object obj2)
Adds the given pair of objects to this matcher.
|
void |
clear()
Removes all entries from this matcher.
|
boolean |
contains(java.lang.Object obj1,
java.lang.Object obj2)
Checks if the given pair objects is held by this matcher.
|
boolean |
isEmpty()
Determines if this matcher is empty.
|
boolean |
remove(java.lang.Object obj1,
java.lang.Object obj2)
Removes the given pair of objects from this matcher.
|
public void add(java.lang.Object obj1, java.lang.Object obj2)
obj1
- the first object to use.obj2
- the second object to use.public boolean remove(java.lang.Object obj1, java.lang.Object obj2)
obj1
- the first object of the pair to be removed.obj2
- the second object of the pair to be removed.public void clear()
public boolean contains(java.lang.Object obj1, java.lang.Object obj2)
obj1
- the first object to use.obj2
- the second object to use.public boolean isEmpty()