org.mule.util.concurrent
Class ConcurrentHashSet

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractSet
          extended byorg.mule.util.concurrent.ConcurrentHashSet
All Implemented Interfaces:
Collection, Serializable, Set

public class ConcurrentHashSet
extends AbstractSet
implements Set, Serializable

See Also:
Serialized Form

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

Constructor Detail

ConcurrentHashSet

public ConcurrentHashSet()

ConcurrentHashSet

public ConcurrentHashSet(int initialCapacity)

ConcurrentHashSet

public ConcurrentHashSet(int initialCapacity,
                         float loadFactor,
                         int concurrencyLevel)
Method Detail

size

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

isEmpty

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

contains

public boolean contains(Object o)
Specified by:
contains in interface Set

iterator

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

toArray

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

toArray

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

add

public boolean add(Object e)
Specified by:
add in interface Set

remove

public boolean remove(Object o)
Specified by:
remove in interface Set

removeAll

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

retainAll

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

clear

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

equals

public boolean equals(Object o)
Specified by:
equals in interface Set

hashCode

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


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.