public class ScopedPersistentStateImpl extends Object implements ScopedPersistentState
GLOBAL_SCOPE
Constructor and Description |
---|
ScopedPersistentStateImpl(String scope) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperty(String key)
Returns whether the state contains a property
|
boolean |
equals(Object o) |
void |
forEach(BiConsumer<String,String> action)
Performs the specified action on every entry of the state
|
int |
getChecksum()
Returns the checksum of the properties excluding those prefixed with @
|
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
|
int |
hashCode() |
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
public int getChecksum()
ScopedPersistentState
getChecksum
in interface ScopedPersistentState
public boolean containsProperty(String key)
ScopedPersistentState
containsProperty
in interface ScopedPersistentState
Copyright © 2021 JBoss by Red Hat. All rights reserved.