net.sf.bddbddb.order
Class UnorderedPair

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList
          extended by jwutil.collections.Pair
              extended by net.sf.bddbddb.order.UnorderedPair
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List, jwutil.io.Textualizable

public class UnorderedPair
extends jwutil.collections.Pair

Author:
mcarbin TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jwutil.collections.Pair
left, right
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
UnorderedPair(java.lang.Object left, java.lang.Object right)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
          Returns the hash code value for this set.
 
Methods inherited from class jwutil.collections.Pair
addEdge, get, set, size, write, writeEdges
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

UnorderedPair

public UnorderedPair(java.lang.Object left,
                     java.lang.Object right)
Parameters:
left -
right -
Method Detail

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Collection
Specified by:
equals in interface java.util.List
Overrides:
equals in class java.util.AbstractList

hashCode

public int hashCode()
Returns the hash code value for this set. The hash code of a set is defined to be the sum of the hash codes of the elements in the set. This ensures that s1.equals(s2) implies that s1.hashCode()==s2.hashCode() for any two sets s1 and s2, as required by the general contract of Object.hashCode.

This implementation enumerates over the set, calling the hashCode method on each element in the collection, and adding up the results.

Specified by:
hashCode in interface java.util.Collection
Specified by:
hashCode in interface java.util.List
Overrides:
hashCode in class java.util.AbstractList
Returns:
the hash code value for this set.


Copyright © 2004-2008 Stanford SUIF Compiler Group. All Rights Reserved.