java.lang.Object
com.telenav.kivakit.collections.map.ReferenceCountMap<Key>
A non-thread-safe map of reference counts.
- Author:
- jonathanl (shibo)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the count of the given objectvoid
dereference
(Key object) Decreases the reference count of the given objectboolean
isReferenced
(Key object) void
Increases the reference count of the given object
-
Constructor Details
-
ReferenceCountMap
public ReferenceCountMap()
-
-
Method Details
-
count
- Returns:
- The reference count for the given object
-
dereference
Decreases the reference count of the given object -
isReferenced
- Returns:
- True if the given object is referenced
-
reference
Increases the reference count of the given object
-