//leakcanary/leakcanary/JobContext
JobContext¶
class JobContext(val starter: Class<*>? = null)
In memory store that can be used to store objects in a given HeapAnalysisJob instance. This is a simple MutableMap of String to Any, but with unsafe generics access.
By convention, starter should be the class that triggered the start of the job.
Constructors¶
JobContext | fun JobContext(starter: KClass<*>) |
JobContext | fun JobContext(starter: Class<*>? = null) |
Functions¶
Name | Summary |
---|---|
contains | operator fun contains(key: String): Boolean |
get | operator fun <T> get(key: String): T? |
getOrPut | fun <T> getOrPut(key: String, defaultValue: () -> T): T |
minusAssign | operator fun minusAssign(key: String) |
set | operator fun <T> set(key: String, value: T) |
Properties¶
Name | Summary |
---|---|
starter | val starter: Class<*>? = null |