org.jjoost.collections.sets.concurrent
Class LockFreeNestedMultiHashSet.Node<V>

java.lang.Object
  extended by org.jjoost.collections.base.HashNode<N>
      extended by org.jjoost.collections.base.LockFreeHashStore.LockFreeHashNode<LockFreeNestedMultiHashSet.Node<V>>
          extended by org.jjoost.collections.sets.concurrent.LockFreeNestedMultiHashSet.Node<V>
All Implemented Interfaces:
java.io.Serializable, NestedMultiHashSet.INode<V,LockFreeNestedMultiHashSet.Node<V>>, Value<V>
Enclosing class:
LockFreeNestedMultiHashSet<V>

public static final class LockFreeNestedMultiHashSet.Node<V>
extends LockFreeHashStore.LockFreeHashNode<LockFreeNestedMultiHashSet.Node<V>>
implements NestedMultiHashSet.INode<V,LockFreeNestedMultiHashSet.Node<V>>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jjoost.collections.base.HashNode
hash
 
Method Summary
 LockFreeNestedMultiHashSet.Node<V> copy()
           
 int count()
           
 V getValue()
           
 java.util.Iterator<V> iterator(java.util.Iterator<java.util.Iterator<V>> superIter)
           
 java.util.Iterator<V> iterator(NestedMultiHashSet<V,LockFreeNestedMultiHashSet.Node<V>> set)
           
 boolean put(V value)
           
 boolean put(V v, int c)
           
 int remove(int target)
           
 java.util.List<V> removeAndReturn(int target)
           
 boolean valid()
           
 
Methods inherited from class org.jjoost.collections.base.HashNode
hash
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copy

public LockFreeNestedMultiHashSet.Node<V> copy()
Specified by:
copy in class LockFreeHashStore.LockFreeHashNode<LockFreeNestedMultiHashSet.Node<V>>

count

public int count()
Specified by:
count in interface NestedMultiHashSet.INode<V,LockFreeNestedMultiHashSet.Node<V>>

put

public boolean put(V value)
Specified by:
put in interface NestedMultiHashSet.INode<V,LockFreeNestedMultiHashSet.Node<V>>

valid

public boolean valid()
Specified by:
valid in interface NestedMultiHashSet.INode<V,LockFreeNestedMultiHashSet.Node<V>>

put

public boolean put(V v,
                   int c)
Specified by:
put in interface NestedMultiHashSet.INode<V,LockFreeNestedMultiHashSet.Node<V>>

remove

public int remove(int target)
Specified by:
remove in interface NestedMultiHashSet.INode<V,LockFreeNestedMultiHashSet.Node<V>>

removeAndReturn

public java.util.List<V> removeAndReturn(int target)
Specified by:
removeAndReturn in interface NestedMultiHashSet.INode<V,LockFreeNestedMultiHashSet.Node<V>>

getValue

public V getValue()
Specified by:
getValue in interface Value<V>
Returns:
the value contained by this Value

iterator

public java.util.Iterator<V> iterator(java.util.Iterator<java.util.Iterator<V>> superIter)
Specified by:
iterator in interface NestedMultiHashSet.INode<V,LockFreeNestedMultiHashSet.Node<V>>

iterator

public java.util.Iterator<V> iterator(NestedMultiHashSet<V,LockFreeNestedMultiHashSet.Node<V>> set)
Specified by:
iterator in interface NestedMultiHashSet.INode<V,LockFreeNestedMultiHashSet.Node<V>>