org.jboss.messaging.util
Class AbstractHashSet<Key>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<Key>
org.jboss.messaging.util.AbstractHashSet<Key>
- All Implemented Interfaces:
- java.lang.Iterable<Key>, java.util.Collection<Key>, java.util.Set<Key>
- Direct Known Subclasses:
- ConcurrentReaderHashSet, WeakHashSet
public abstract class AbstractHashSet<Key>
- extends java.util.AbstractSet<Key>
- Version:
- $Revision: 3092 $
$Id: AbstractHashSet.java 3092 2007-09-10 21:42:30Z clebert.suconic@jboss.com $
- Author:
- Clebert Suconic
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 |
AbstractHashSet
public AbstractHashSet()
buildInternalHashMap
protected abstract java.util.Map buildInternalHashMap()
size
public int size()
- Specified by:
size
in interface java.util.Collection<Key>
- Specified by:
size
in interface java.util.Set<Key>
- Specified by:
size
in class java.util.AbstractCollection<Key>
iterator
public java.util.Iterator<Key> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<Key>
- Specified by:
iterator
in interface java.util.Collection<Key>
- Specified by:
iterator
in interface java.util.Set<Key>
- Specified by:
iterator
in class java.util.AbstractCollection<Key>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Collection<Key>
- Specified by:
isEmpty
in interface java.util.Set<Key>
- Overrides:
isEmpty
in class java.util.AbstractCollection<Key>
add
public boolean add(Key o)
- Specified by:
add
in interface java.util.Collection<Key>
- Specified by:
add
in interface java.util.Set<Key>
- Overrides:
add
in class java.util.AbstractCollection<Key>
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interface java.util.Collection<Key>
- Specified by:
contains
in interface java.util.Set<Key>
- Overrides:
contains
in class java.util.AbstractCollection<Key>
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection<Key>
- Specified by:
clear
in interface java.util.Set<Key>
- Overrides:
clear
in class java.util.AbstractCollection<Key>
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Collection<Key>
- Specified by:
remove
in interface java.util.Set<Key>
- Overrides:
remove
in class java.util.AbstractCollection<Key>
Copyright © 2006 JBoss Inc. All Rights Reserved.