org.jboss.messaging.core.util
Class ConcurrentHashSet
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
org.jboss.messaging.core.util.ConcurrentHashSet
- All Implemented Interfaces:
- java.util.Collection, java.util.Set
- public class ConcurrentHashSet
- extends java.util.AbstractSet
A ConcurrentHashSet.
Offers same concurrency as ConcurrentHashMap but for a Set
- Version:
- $Revision: 543 $
$Id: ConcurrentHashSet.java 543 2005-12-27 22:00:46Z ovidiu $
- Author:
- Tim Fox
Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, retainAll, toArray, toArray, 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, retainAll, toArray, toArray |
ConcurrentHashSet
public ConcurrentHashSet()
size
public int size()
iterator
public java.util.Iterator iterator()
isEmpty
public boolean isEmpty()
add
public boolean add(java.lang.Object o)
contains
public boolean contains(java.lang.Object o)
clear
public void clear()
remove
public boolean remove(java.lang.Object o)
Copyright © 2006 JBoss Inc. All Rights Reserved.