class RefCountMap[T] extends AnyRef
Atomically counts references to objects of any type
- Alphabetic
- By Inheritance
- RefCountMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RefCountMap()
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
acquire(key: T): Int
Atomically increases reference count by one.
Atomically increases reference count by one.
- returns
reference count after increase
- Annotations
- @tailrec()
-
final
def
acquireIfNonZero(key: T): Int
Atomically increases reference count only if the reference counter is already greater than 0.
Atomically increases reference count only if the reference counter is already greater than 0.
- returns
true if reference counter was greater than zero and has been increased
- Annotations
- @tailrec()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clear(): Unit
Resets state of all counters to 0
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
get(key: T): Int
Returns current reference count for the given key.
Returns current reference count for the given key. This value may be constantly changing, so do not use it for synchronization purposes.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
release(key: T, n: Int = 1): Int
Atomically decreases reference count by
n
.Atomically decreases reference count by
n
.- returns
reference count after decrease
- Annotations
- @tailrec()
- Exceptions thrown
IllegalStateException
if the reference count before decrease is less thann
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.