jr239.co620
Class Couple<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<E>
              extended by jr239.co620.Couple<E>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>

public class Couple<E>
extends java.util.HashSet<E>
implements java.util.Set<E>, java.lang.Cloneable, java.io.Serializable

Author:
jar
See Also:
Serialized Form

Constructor Summary
Couple(E e1, E e2)
           
 
Method Summary
 boolean add(E e)
           
 boolean add(E e1, E e2)
           
 void remove(E e)
           
 boolean remove(E e1, E e2)
           
 
Methods inherited from class java.util.HashSet
clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

Couple

public Couple(E e1,
              E e2)
Method Detail

add

public boolean add(E e)
Specified by:
add in interface java.util.Collection<E>
Specified by:
add in interface java.util.Set<E>
Overrides:
add in class java.util.HashSet<E>

remove

public void remove(E e)

remove

public boolean remove(E e1,
                      E e2)

add

public boolean add(E e1,
                   E e2)


Copyright © 2008 This is an undergraduate research project at the University of Kent Computing Laboratory. All Rights Reserved.