chamber / com.skydoves.chamber / ChamberStore

ChamberStore

class ChamberStore

ChamberStore is an internal storage to store ChamberField and ChamberLifecycleObserver.

Constructors

<init>

ChamberStore()

ChamberStore is an internal storage to store ChamberField and ChamberLifecycleObserver.

Functions

checkContainsChamberLifecycleObserver

fun checkContainsChamberLifecycleObserver(annotation: Annotation, lifecycleOwner: String): Boolean

checks a ChamberLifecycleObserver is already cached or not.

clear

fun clear(): Unit

clears internal storage.

clearFieldScope

fun clearFieldScope(annotation: Annotation): Unit

clears a value hash map caches by a scope.

clearLifecycleObserverScope

fun clearLifecycleObserverScope(annotation: Annotation): Unit

clears a lifecycle stack caches by a scope.

getFieldScopeCacheSize

fun getFieldScopeCacheSize(): Int

gets the scoped caching size.

getFieldScopeMap

fun getFieldScopeMap(annotation: Annotation): HashMap<String, ChamberField<*>>?

gets ChamberField hash map by a scope.

getLifecycleObserverStack

fun getLifecycleObserverStack(annotation: Annotation): Stack<ChamberLifecycleObserver>?

gets ChamberLifecycleObserver stack by a scope.

getLifecycleObserverStackSize

fun getLifecycleObserverStackSize(annotation: Annotation): Int

gets the stack size of ChamberLifecycleObserver by a scope.

initializeFieldScopeMap

fun initializeFieldScopeMap(annotation: Annotation): Unit

initializes the ChamberField hash map by a scope.

initializeObserverScopeStack

fun initializeObserverScopeStack(annotation: Annotation): Unit

initializes the ChamberLifecycleObserver stack by a scope.