Skip to content

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.

ReturnsSignatureSummary
booleanisLocal()If true, each UI gets its own store.
booleanisGlobal()If true, the store is shared by every UI.
ValueSummary
LOCALEach UI that asks for the store gets its own, destroyed when that UI closes.
GLOBALOne store for the whole application, shared by every UI, kept in memory until the program ends.
PERMANENTOne 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.

boolean isLocal()

If true, each UI gets its own store.

boolean isGlobal()

If true, the store is shared by every UI.

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.


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

Report a problem with this page