org.terracotta.cache.evictor
Class ConcurrentHashSet<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<T>
          extended by org.terracotta.cache.evictor.ConcurrentHashSet<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, Set<T>

public class ConcurrentHashSet<T>
extends AbstractSet<T>

Author:
Chris Dennis

Constructor Summary
ConcurrentHashSet()
           
ConcurrentHashSet(Collection<? extends T> c)
           
ConcurrentHashSet(int initialCapacity)
           
ConcurrentHashSet(int initialCapacity, float loadFactor)
           
 
Method Summary
 boolean add(T o)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean isEmpty()
           
 Iterator<T> iterator()
           
 boolean remove(Object o)
           
 int size()
           
 
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
 

Constructor Detail

ConcurrentHashSet

public ConcurrentHashSet()

ConcurrentHashSet

public ConcurrentHashSet(Collection<? extends T> c)

ConcurrentHashSet

public ConcurrentHashSet(int initialCapacity,
                         float loadFactor)

ConcurrentHashSet

public ConcurrentHashSet(int initialCapacity)
Method Detail

iterator

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

size

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

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<T>
Specified by:
isEmpty in interface Set<T>
Overrides:
isEmpty in class AbstractCollection<T>

contains

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

add

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

remove

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

clear

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


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.