Package | Description |
---|---|
edu.illinois.cs.cogcomp.wikifier.utils.concurrent |
Modifier and Type | Field and Description |
---|---|
static Init<AtomicInteger> |
Init.newAtmInt |
static Init<ConcurrentHashMap<Integer,AtomicInteger>> |
Init.newCountMap |
static Init<gnu.trove.list.array.TIntArrayList> |
Init.newIntList |
static Init<LinkedList<Integer>> |
Init.newLkdList |
static Init<gnu.trove.map.hash.TIntIntHashMap> |
Init.newTIntMap |
Modifier and Type | Method and Description |
---|---|
static <K,V> V |
Init.fastGet(Map<K,V> map,
K key,
Init<V> initiailzer)
Non thread-safe version of
getOrCreate(ConcurrentMap, Object, Init)
without writing to the map |
static <K,V> V |
Init.getOrCreate(ConcurrentMap<K,V> map,
K key,
Init<V> initiailzer)
Atomic initialization and gets
for concurrent maps.
|
Copyright © 2017. All rights reserved.