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()
ScopedPersistentState
getScope
in interface ScopedPersistentState
public void setProperty(String key, String value)
ScopedPersistentState
setProperty
in interface ScopedPersistentState
public void setProperty(String key, int value)
ScopedPersistentState
setProperty
in interface ScopedPersistentState
public int getIntProperty(String key)
ScopedPersistentState
getIntProperty
in interface ScopedPersistentState
public void setProperty(String key, float f)
ScopedPersistentState
setProperty
in interface ScopedPersistentState
public float getFloatProperty(String key)
ScopedPersistentState
getFloatProperty
in interface ScopedPersistentState
public String getProperty(String key)
ScopedPersistentState
getProperty
in interface ScopedPersistentState
public void forEach(BiConsumer<String,String> action)
ScopedPersistentState
forEach
in interface ScopedPersistentState
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.