org.jjoost.collections.sets.serial
Class SerialLinkedCountingMultiHashSet.Node<V>
java.lang.Object
org.jjoost.collections.base.HashNode<N>
org.jjoost.collections.base.SerialHashStore.SerialHashNode<N>
org.jjoost.collections.base.SerialLinkedHashStore.SerialLinkedHashNode<SerialLinkedCountingMultiHashSet.Node<V>>
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
| Fields inherited from class org.jjoost.collections.base.HashNode |
hash |
| 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 |
SerialLinkedCountingMultiHashSet.Node
public SerialLinkedCountingMultiHashSet.Node(int hash,
V value,
int count)
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>>