org.rcfaces.core.lang
Class OrderedSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet
          extended by org.rcfaces.core.lang.OrderedSet
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, Set, ICommitableObject

public class OrderedSet
extends AbstractSet
implements Cloneable, Serializable, ICommitableObject

Version:
$Revision: 1.2 $ $Date: 2008/02/25 14:05:43 $
Author:
Olivier Oeuillot (latest modification by $Author: oeuillot $)
See Also:
Serialized Form

Constructor Summary
OrderedSet()
           
OrderedSet(Collection collection)
           
OrderedSet(int size)
           
 
Method Summary
 boolean add(Object o)
           
 void clear()
           
 Object clone()
           
 void commit()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection c)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isCommited()
           
 Iterator iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection c)
           
 boolean retainAll(Collection c)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 String toString()
           
 
Methods inherited from class java.util.AbstractCollection
addAll, isEmpty
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, isEmpty
 

Constructor Detail

OrderedSet

public OrderedSet()

OrderedSet

public OrderedSet(int size)

OrderedSet

public OrderedSet(Collection collection)
Method Detail

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection
Specified by:
iterator in interface Set
Specified by:
iterator in class AbstractCollection

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection
Specified by:
contains in interface Set
Overrides:
contains in class AbstractCollection

containsAll

public boolean containsAll(Collection c)
Specified by:
containsAll in interface Collection
Specified by:
containsAll in interface Set
Overrides:
containsAll in class AbstractCollection

add

public boolean add(Object o)
Specified by:
add in interface Collection
Specified by:
add in interface Set
Overrides:
add in class AbstractCollection

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection
Specified by:
remove in interface Set
Overrides:
remove in class AbstractCollection

removeAll

public boolean removeAll(Collection c)
Specified by:
removeAll in interface Collection
Specified by:
removeAll in interface Set
Overrides:
removeAll in class AbstractSet

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in interface Set
Specified by:
size in class AbstractCollection

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface Set
Overrides:
clear in class AbstractCollection

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection
Specified by:
toArray in interface Set
Overrides:
toArray in class AbstractCollection

toArray

public Object[] toArray(Object[] a)
Specified by:
toArray in interface Collection
Specified by:
toArray in interface Set
Overrides:
toArray in class AbstractCollection

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection
Specified by:
hashCode in interface Set
Overrides:
hashCode in class AbstractSet

equals

public boolean equals(Object obj)
Specified by:
equals in interface Collection
Specified by:
equals in interface Set
Overrides:
equals in class AbstractSet

retainAll

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

toString

public String toString()
Overrides:
toString in class AbstractCollection

clone

public Object clone()
Overrides:
clone in class Object

commit

public void commit()
Specified by:
commit in interface ICommitableObject

isCommited

public boolean isCommited()
Specified by:
isCommited in interface ICommitableObject


Copyright © 2006-2011 Vedana. All Rights Reserved.