public class ScopedPersistentStateImpl extends Object implements ScopedPersistentState
GLOBAL_SCOPE| Constructor and Description |
|---|
ScopedPersistentStateImpl(String scope) |
| Modifier and Type | Method and Description |
|---|---|
void |
forEach(BiConsumer<String,String> action)
Performs the specified action on every entry of the state
|
float |
getFloatProperty(String key)
Retrieves a float state property
|
int |
getIntProperty(String key)
Retrieves an integer state property
|
String |
getProperty(String key)
Retrieves a state property
|
String |
getScope()
Returns the name of this persistent state's scope
|
void |
setProperty(String key,
float f)
Sets a float state property.
|
void |
setProperty(String key,
int value)
Sets an integer state property.
|
void |
setProperty(String key,
String value)
Sets a state property.
|
public ScopedPersistentStateImpl(String scope)
public String getScope()
ScopedPersistentStategetScope in interface ScopedPersistentStatepublic void setProperty(String key, String value)
ScopedPersistentStatesetProperty in interface ScopedPersistentStatepublic void setProperty(String key, int value)
ScopedPersistentStatesetProperty in interface ScopedPersistentStatepublic int getIntProperty(String key)
ScopedPersistentStategetIntProperty in interface ScopedPersistentStatepublic void setProperty(String key, float f)
ScopedPersistentStatesetProperty in interface ScopedPersistentStatepublic float getFloatProperty(String key)
ScopedPersistentStategetFloatProperty in interface ScopedPersistentStatepublic String getProperty(String key)
ScopedPersistentStategetProperty in interface ScopedPersistentStatepublic void forEach(BiConsumer<String,String> action)
ScopedPersistentStateforEach in interface ScopedPersistentStateCopyright © 2024 JBoss, a division of Red Hat. All rights reserved.