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

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

public static final class LockFreeLinkedCountingMultiHashSet.Node<V>
extends LockFreeLinkedHashStore.LockFreeLinkedHashNode<LockFreeLinkedCountingMultiHashSet.Node<V>>
implements NestedMultiHashSet.INode<V,LockFreeLinkedCountingMultiHashSet.Node<V>>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jjoost.collections.base.HashNode
hash
 
Constructor Summary
LockFreeLinkedCountingMultiHashSet.Node(int hash, V value, int count)
           
 
Method Summary
 LockFreeLinkedCountingMultiHashSet.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,LockFreeLinkedCountingMultiHashSet.Node<V>> set)
           
 boolean put(V val)
           
 boolean put(V val, int c)
           
 int remove(int i)
           
 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
 

Constructor Detail

LockFreeLinkedCountingMultiHashSet.Node

public LockFreeLinkedCountingMultiHashSet.Node(int hash,
                                               V value,
                                               int count)
Method Detail

getValue

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

copy

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

count

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

remove

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

removeAndReturn

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

put

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

put

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

valid

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

iterator

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

iterator

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