org.argouml.util
Class LinkedHashSet

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractSet
              |
              +--java.util.HashSet
                    |
                    +--org.argouml.util.LinkedHashSet
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.io.Serializable, java.util.Set

public class LinkedHashSet
extends java.util.HashSet

This implements all the same methods of the JDK1.4 LinkedHashSet class and is provided to give the same functionality for previous versions of JDK.

See Also:
, Serialized Form

Constructor Summary
LinkedHashSet()
          Creates a new instance of LinkedHashSet
 
Method Summary
 boolean add(java.lang.Object o)
           
 void clear()
           
 boolean equals(java.lang.Object o)
           
 java.util.Iterator iterator()
           
 boolean remove(java.lang.Object o)
           
 boolean retainAll(java.util.Collection c)
           
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] a)
           
 
Methods inherited from class java.util.HashSet
clone, contains, isEmpty, size
 
Methods inherited from class java.util.AbstractSet
hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, hashCode, removeAll
 

Constructor Detail

LinkedHashSet

public LinkedHashSet()
Creates a new instance of LinkedHashSet

Method Detail

add

public boolean add(java.lang.Object o)
Specified by:
add in interface java.util.Set
Overrides:
add in class java.util.HashSet

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Set
Overrides:
remove in class java.util.HashSet

retainAll

public boolean retainAll(java.util.Collection c)
Specified by:
retainAll in interface java.util.Set
Overrides:
retainAll in class java.util.AbstractCollection

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Set
Overrides:
toArray in class java.util.AbstractCollection

toArray

public java.lang.Object[] toArray(java.lang.Object[] a)
Specified by:
toArray in interface java.util.Set
Overrides:
toArray in class java.util.AbstractCollection

clear

public void clear()
Specified by:
clear in interface java.util.Set
Overrides:
clear in class java.util.HashSet

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Set
Overrides:
equals in class java.util.AbstractSet

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.util.Set
Overrides:
iterator in class java.util.HashSet


ArgoUML © 1996-2003 (20040229)ArgoUML Project HomeArgoUML Cookbook