org.jjoost.collections.base
Class LockFreeLinkedHashStore<N extends LockFreeLinkedHashStore.LockFreeLinkedHashNode<N>>

java.lang.Object
  extended by org.jjoost.collections.base.LockFreeHashStore<N>
      extended by org.jjoost.collections.base.LockFreeLinkedHashStore<N>
All Implemented Interfaces:
java.io.Serializable, HashStore<N>

public class LockFreeLinkedHashStore<N extends LockFreeLinkedHashStore.LockFreeLinkedHashNode<N>>
extends LockFreeHashStore<N>

See Also:
Serialized Form

Nested Class Summary
static class LockFreeLinkedHashStore.LockFreeLinkedHashNode<N extends LockFreeLinkedHashStore.LockFreeLinkedHashNode<N>>
           
 
Nested classes/interfaces inherited from class org.jjoost.collections.base.LockFreeHashStore
LockFreeHashStore.Counting, LockFreeHashStore.LockFreeHashNode<N extends LockFreeHashStore.LockFreeHashNode<N>>
 
Constructor Summary
LockFreeLinkedHashStore(float loadFactor, org.jjoost.collections.base.LockFreeHashStore.Counter totalCounter, org.jjoost.collections.base.LockFreeHashStore.Counter uniqCounter, N[] table)
           
LockFreeLinkedHashStore(int initialCapacity, float loadFactor, LockFreeHashStore.Counting totalCounting, LockFreeHashStore.Counting uniquePrefixCounting)
           
 
Method Summary
<NCmp,V> java.util.Iterator<V>
all(Function<? super N,? extends NCmp> nodePrefixEqFunc, HashNodeEquality<? super NCmp,? super N> nodePrefixEq, Function<? super N,? extends V> ret)
           
<NCmp> HashStore<N>
copy(Function<? super N,? extends NCmp> nodeEqualityProj, HashNodeEquality<? super NCmp,? super N> nodeEquality)
           
<NCmp,NCmp2,V>
java.util.Iterator<V>
unique(Function<? super N,? extends NCmp> uniquenessEqualityProj, Equality<? super NCmp> uniquenessEquality, Function<? super N,? extends NCmp2> nodeEqualityProj, HashNodeEquality<? super NCmp2,? super N> nodeEquality, Function<? super N,? extends V> ret)
           
 
Methods inherited from class org.jjoost.collections.base.LockFreeHashStore
capacity, clear, clearAndReturn, contains, count, ensureAndGet, find, findNow, first, isEmpty, put, putIfAbsent, putIfAbsent, remove, removeAndReturn, removeAndReturnFirst, removeNode, resize, shrink, toString, totalCount, uniquePrefixCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LockFreeLinkedHashStore

public LockFreeLinkedHashStore(float loadFactor,
                               org.jjoost.collections.base.LockFreeHashStore.Counter totalCounter,
                               org.jjoost.collections.base.LockFreeHashStore.Counter uniqCounter,
                               N[] table)

LockFreeLinkedHashStore

public LockFreeLinkedHashStore(int initialCapacity,
                               float loadFactor,
                               LockFreeHashStore.Counting totalCounting,
                               LockFreeHashStore.Counting uniquePrefixCounting)
Method Detail

copy

public <NCmp> HashStore<N> copy(Function<? super N,? extends NCmp> nodeEqualityProj,
                                HashNodeEquality<? super NCmp,? super N> nodeEquality)
Specified by:
copy in interface HashStore<N extends LockFreeLinkedHashStore.LockFreeLinkedHashNode<N>>
Overrides:
copy in class LockFreeHashStore<N extends LockFreeLinkedHashStore.LockFreeLinkedHashNode<N>>

all

public <NCmp,V> java.util.Iterator<V> all(Function<? super N,? extends NCmp> nodePrefixEqFunc,
                                          HashNodeEquality<? super NCmp,? super N> nodePrefixEq,
                                          Function<? super N,? extends V> ret)
Specified by:
all in interface HashStore<N extends LockFreeLinkedHashStore.LockFreeLinkedHashNode<N>>
Overrides:
all in class LockFreeHashStore<N extends LockFreeLinkedHashStore.LockFreeLinkedHashNode<N>>

unique

public <NCmp,NCmp2,V> java.util.Iterator<V> unique(Function<? super N,? extends NCmp> uniquenessEqualityProj,
                                                   Equality<? super NCmp> uniquenessEquality,
                                                   Function<? super N,? extends NCmp2> nodeEqualityProj,
                                                   HashNodeEquality<? super NCmp2,? super N> nodeEquality,
                                                   Function<? super N,? extends V> ret)
Specified by:
unique in interface HashStore<N extends LockFreeLinkedHashStore.LockFreeLinkedHashNode<N>>
Overrides:
unique in class LockFreeHashStore<N extends LockFreeLinkedHashStore.LockFreeLinkedHashNode<N>>