org.jjoost.collections.sets.serial
Class SerialLinkedCountingMultiHashSet.Node<V>

java.lang.Object
  extended by org.jjoost.collections.base.HashNode<N>
      extended by org.jjoost.collections.base.SerialHashStore.SerialHashNode<N>
          extended by org.jjoost.collections.base.SerialLinkedHashStore.SerialLinkedHashNode<SerialLinkedCountingMultiHashSet.Node<V>>
              extended by org.jjoost.collections.sets.serial.SerialLinkedCountingMultiHashSet.Node<V>
All Implemented Interfaces:
java.io.Serializable, NestedMultiHashSet.INode<V,SerialLinkedCountingMultiHashSet.Node<V>>, Value<V>
Enclosing class:
SerialLinkedCountingMultiHashSet<V>

public static final class SerialLinkedCountingMultiHashSet.Node<V>
extends SerialLinkedHashStore.SerialLinkedHashNode<SerialLinkedCountingMultiHashSet.Node<V>>
implements NestedMultiHashSet.INode<V,SerialLinkedCountingMultiHashSet.Node<V>>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jjoost.collections.base.HashNode
hash
 
Constructor Summary
SerialLinkedCountingMultiHashSet.Node(int hash, V value, int count)
           
 
Method Summary
 SerialLinkedCountingMultiHashSet.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,SerialLinkedCountingMultiHashSet.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

SerialLinkedCountingMultiHashSet.Node

public SerialLinkedCountingMultiHashSet.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 SerialLinkedCountingMultiHashSet.Node<V> copy()
Specified by:
copy in class HashNode<SerialLinkedCountingMultiHashSet.Node<V>>

count

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

remove

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

removeAndReturn

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

put

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

put

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

valid

public boolean valid()
Specified by:
valid in interface NestedMultiHashSet.INode<V,SerialLinkedCountingMultiHashSet.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,SerialLinkedCountingMultiHashSet.Node<V>>

iterator

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