com.raritantechnologies.utils
Class OrderedSet
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
java.util.HashSet
com.raritantechnologies.utils.OrderedSet
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, java.io.Serializable, java.util.Set
- public class OrderedSet
- extends java.util.HashSet
Extension of java.util.HashSet that maintains the order of objects added to the set.
Developed by
Raritan Technologies .
- Author:
- Ted Sullivan
- See Also:
- Serialized Form
|
Method Summary |
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
void |
addDupe(java.lang.Object o)
|
void |
clear()
|
int |
indexOf(java.lang.Object o)
|
java.util.Iterator |
iterator()
|
static void |
main(java.lang.String[] args)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
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 |
equals, hashCode |
| Methods inherited from class java.util.AbstractCollection |
containsAll, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
containsAll, equals, hashCode |
OrderedSet
public OrderedSet()
add
public boolean add(java.lang.Object o)
addDupe
public void addDupe(java.lang.Object o)
remove
public boolean remove(java.lang.Object o)
addAll
public boolean addAll(java.util.Collection c)
removeAll
public boolean removeAll(java.util.Collection c)
retainAll
public boolean retainAll(java.util.Collection c)
clear
public void clear()
iterator
public java.util.Iterator iterator()
toArray
public java.lang.Object[] toArray()
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
indexOf
public int indexOf(java.lang.Object o)
main
public static void main(java.lang.String[] args)