final class PNCounterMap[K] extends AbstractORMapWrapper[K, Long, PNCounter] with Map[K, Long]
Convenience wrapper class for ORMap that uses PNCounter's for values.
This offers a few extra methods for interacting with the map.
- Alphabetic
- By Inheritance
- PNCounterMap
- AbstractORMapWrapper
- AbstractMap
- Map
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clear(): Unit
- Definition Classes
- AbstractORMapWrapper → AbstractMap → Map
-
def
clone(): AnyRef
- Attributes
- protected[util]
- Definition Classes
- AbstractMap → AnyRef
- Annotations
- @throws( ... )
-
def
compute(arg0: K, arg1: BiFunction[_ >: K, _ >: Long, _ <: Long]): Long
- Definition Classes
- Map
-
def
computeIfAbsent(arg0: K, arg1: Function[_ >: K, _ <: Long]): Long
- Definition Classes
- Map
-
def
computeIfPresent(arg0: K, arg1: BiFunction[_ >: K, _ >: Long, _ <: Long]): Long
- Definition Classes
- Map
-
def
containsKey(key: Any): Boolean
- Definition Classes
- AbstractORMapWrapper → AbstractMap → Map
-
def
containsValue(arg0: Any): Boolean
- Definition Classes
- AbstractMap → Map
-
def
decrement(key: Any, by: Long): Long
Decrement the counter at the given key by the given amount.
Decrement the counter at the given key by the given amount.
The counter will be created if it is not already in the map.
- key
The key of the counter.
- by
The amount to decrement by.
- returns
The new value of the counter.
-
def
entrySet(): Set[Entry[K, Long]]
- Definition Classes
- AbstractORMapWrapper → AbstractMap → Map
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AbstractMap → Map → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
forEach(arg0: BiConsumer[_ >: K, _ >: Long]): Unit
- Definition Classes
- Map
-
def
get(key: Any): Long
- Definition Classes
- AbstractORMapWrapper → AbstractMap → Map
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getOrDefault(arg0: Any, arg1: Long): Long
- Definition Classes
- Map
-
def
getValue(key: Any): Long
Get the value for the given key.
Get the value for the given key.
This differs from
Map#get(Object)in that it returns a primitivelong, and thus avoids an allocation.- key
The key to get the value for.
- returns
The current value of the counter at that key, or zero if no counter exists for that key.
-
def
hashCode(): Int
- Definition Classes
- AbstractMap → Map → AnyRef → Any
-
def
increment(key: Any, by: Long): Long
Increment the counter at the given key by the given amount.
Increment the counter at the given key by the given amount.
The counter will be created if it is not already in the map.
- key
The key of the counter.
- by
The amount to increment by.
- returns
The new value of the counter.
-
def
isEmpty(): Boolean
- Definition Classes
- AbstractMap → Map
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
keySet(): Set[K]
- Definition Classes
- AbstractORMapWrapper → AbstractMap → Map
-
def
merge(arg0: K, arg1: Long, arg2: BiFunction[_ >: Long, _ >: Long, _ <: Long]): Long
- Definition Classes
- Map
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
put(key: K, value: Long): Long
Not supported on PNCounter, use increment/decrement instead.
Not supported on PNCounter, use increment/decrement instead.
- Definition Classes
- PNCounterMap → AbstractORMapWrapper → AbstractMap → Map
-
def
putAll(arg0: Map[_ <: K, _ <: Long]): Unit
- Definition Classes
- AbstractMap → Map
-
def
putIfAbsent(arg0: K, arg1: Long): Long
- Definition Classes
- Map
-
def
remove(key: Any): Long
- Definition Classes
- AbstractORMapWrapper → AbstractMap → Map
-
def
remove(arg0: Any, arg1: Any): Boolean
- Definition Classes
- Map
-
def
replace(arg0: K, arg1: Long): Long
- Definition Classes
- Map
-
def
replace(arg0: K, arg1: Long, arg2: Long): Boolean
- Definition Classes
- Map
-
def
replaceAll(arg0: BiFunction[_ >: K, _ >: Long, _ <: Long]): Unit
- Definition Classes
- Map
-
def
size(): Int
- Definition Classes
- AbstractORMapWrapper → AbstractMap → Map
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AbstractMap → AnyRef → Any
-
def
values(): Collection[Long]
- Definition Classes
- AbstractMap → Map
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()