public abstract class AbstractBaseParams extends Object implements ResourceParams
PARAMETER_SEPARATOR
Constructor and Description |
---|
AbstractBaseParams()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
activateAutoRefresh()
Activate AutoRefresh that will mark the
ResourceParams as 'Updated' to force the rebuild of the resource on next call. |
boolean |
equals(Object params) |
protected abstract List<? extends Object> |
getFieldValues()
Return all values of
ParameterEntry object. |
String |
getKey()
Return the dynamic key used to hold resources without static field.
|
boolean |
hasChanged()
Checks for resource changes.
|
void |
hasChanged(boolean changed)
Define if the resource has changed or not.
|
int |
hashCode() |
protected boolean |
readBoolean(String parameter)
Read a boolean string value.
|
protected double |
readDouble(String doubleString,
double min,
double max)
Read a double string value.
|
protected int |
readInteger(String intString,
int min,
int max)
Read ab integer string value.
|
void |
setKey(String key)
Define the dynamic key used to hold resources without static field.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
parse
public AbstractBaseParams()
public void activateAutoRefresh()
ResourceParams
as 'Updated' to force the rebuild of the resource on next call.activateAutoRefresh
in interface ResourceParams
public boolean hasChanged()
hasChanged
in interface ResourceParams
public void hasChanged(boolean changed)
hasChanged
in interface ResourceParams
changed
- the changed argumentpublic String getKey()
ResourceParams
getKey
in interface ResourceParams
public void setKey(String key)
ResourceParams
setKey
in interface ResourceParams
key
- The key to set.protected double readDouble(String doubleString, double min, double max)
doubleString
- the double valuemin
- the minimum value allowedmax
- the maximum value allowedprotected int readInteger(String intString, int min, int max)
intString
- the integer valuemin
- the minimum value allowedmax
- the maximum value allowedprotected boolean readBoolean(String parameter)
parameter
- the boolean string valueprotected abstract List<? extends Object> getFieldValues()
ParameterEntry
object.Copyright © 2011–2016 JRebirth OSS. All rights reserved.