org.xanot.util
Class UniquePairs

java.lang.Object
  extended by org.xanot.util.UniquePairs

public class UniquePairs
extends java.lang.Object

Helper class acting like an ArrayList, in fact it was build using ArrayList as it storage. It stores list of object pairs.

Author:
Ferdinand Neman (newm4n _at_ gmail.com)

Nested Class Summary
(package private)  class UniquePairs.Pair
          A pair.
 
Constructor Summary
UniquePairs()
           
 
Method Summary
 void addPair(java.lang.Object a, java.lang.Object b)
          Add new pair
 boolean isPairExist(java.lang.Object a, java.lang.Object b)
          Chech wether an object pair is exist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniquePairs

public UniquePairs()
Method Detail

addPair

public void addPair(java.lang.Object a,
                    java.lang.Object b)
Add new pair

Parameters:
a - First object
b - Second object

isPairExist

public boolean isPairExist(java.lang.Object a,
                           java.lang.Object b)
Chech wether an object pair is exist

Parameters:
a - First object
b - Second object
Returns:
True if pair exist, False if not exist.


Copyright 2006 null. All Rights Reserved.