com.generationjava.collections
Class OrderedSet

java.lang.Object
  extended bycom.generationjava.collections.OrderedSet
All Implemented Interfaces:
Collection, Set

Deprecated. now found in Collections 3.0

public class OrderedSet
extends Object
implements Set

An implementation of Set that guarentees ordering remains constant.


Constructor Summary
OrderedSet()
          Deprecated.  
OrderedSet(Collection c)
          Deprecated.  
OrderedSet(List list)
          Deprecated. Create using the given List as the internal storage method.
 
Method Summary
 boolean add(Object obj)
          Deprecated.  
 boolean addAll(Collection c)
          Deprecated.  
 void clear()
          Deprecated.  
 boolean contains(Object obj)
          Deprecated.  
 boolean containsAll(Collection c)
          Deprecated.  
 boolean equals(Object obj)
          Deprecated.  
 int hashCode()
          Deprecated.  
 boolean isEmpty()
          Deprecated.  
 Iterator iterator()
          Deprecated.  
 boolean remove(Object obj)
          Deprecated.  
 boolean removeAll(Collection c)
          Deprecated.  
 boolean retainAll(Collection c)
          Deprecated.  
 int size()
          Deprecated.  
 Object[] toArray()
          Deprecated.  
 Object[] toArray(Object[] arr)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderedSet

public OrderedSet()
Deprecated. 

OrderedSet

public OrderedSet(Collection c)
Deprecated. 

OrderedSet

public OrderedSet(List list)
Deprecated. 
Create using the given List as the internal storage method.

Method Detail

add

public boolean add(Object obj)
Deprecated. 
Specified by:
add in interface Set

addAll

public boolean addAll(Collection c)
Deprecated. 
Specified by:
addAll in interface Set

clear

public void clear()
Deprecated. 
Specified by:
clear in interface Set

contains

public boolean contains(Object obj)
Deprecated. 
Specified by:
contains in interface Set

containsAll

public boolean containsAll(Collection c)
Deprecated. 
Specified by:
containsAll in interface Set

equals

public boolean equals(Object obj)
Deprecated. 
Specified by:
equals in interface Set

hashCode

public int hashCode()
Deprecated. 
Specified by:
hashCode in interface Set

isEmpty

public boolean isEmpty()
Deprecated. 
Specified by:
isEmpty in interface Set

iterator

public Iterator iterator()
Deprecated. 
Specified by:
iterator in interface Set

remove

public boolean remove(Object obj)
Deprecated. 
Specified by:
remove in interface Set

removeAll

public boolean removeAll(Collection c)
Deprecated. 
Specified by:
removeAll in interface Set

retainAll

public boolean retainAll(Collection c)
Deprecated. 
Specified by:
retainAll in interface Set

size

public int size()
Deprecated. 
Specified by:
size in interface Set

toArray

public Object[] toArray()
Deprecated. 
Specified by:
toArray in interface Set

toArray

public Object[] toArray(Object[] arr)
Deprecated. 
Specified by:
toArray in interface Set


Copyright © 2000-2005 OSJava. All Rights Reserved.