UIStoreScope
enum UIStoreScope
Package: dev.joid.lib.ui.core.hook.store · Module: core · Source: UIStoreScope.java
How long a store lives and which UIs share it.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | isLocal() | If true, each UI gets its own store. |
boolean | isGlobal() | If true, the store is shared by every UI. |
Values
Section titled “Values”| Value | Summary |
|---|---|
LOCAL | Each UI that asks for the store gets its own, destroyed when that UI closes. |
GLOBAL | One store for the whole application, shared by every UI, kept in memory until the program ends. |
PERMANENT | One store for the whole application, shared by every UI and saved in the data folder, so that its values come back at the next run. |
Method details
Section titled “Method details”isLocal
Section titled “isLocal”boolean isLocal()
If true, each UI gets its own store.
isGlobal
Section titled “isGlobal”boolean isGlobal()
If true, the store is shared by every UI.
Value details
Section titled “Value details”LOCAL
Each UI that asks for the store gets its own, destroyed when that UI closes.
GLOBAL
Section titled “GLOBAL”GLOBAL
One store for the whole application, shared by every UI, kept in memory until the program ends.
PERMANENT
Section titled “PERMANENT”PERMANENT
One store for the whole application, shared by every UI and saved in the data folder, so that its values come back at the next run.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
