public class Content<T> extends Object
| Constructor and Description |
|---|
Content() |
| Modifier and Type | Method and Description |
|---|---|
T |
get(IDetectionKeys<?> type,
String valueName,
T defaultValue)
Obtain the saved value
|
HashMap<String,T> |
getAllContent(IDetectionKeys<?> type) |
boolean |
has(IDetectionKeys<?> type,
String valueName)
Check if the given value is set or not
|
T |
remove(IDetectionKeys<?> type,
String valueName)
Remove value for the specified type
|
void |
set(IDetectionKeys<?> type,
String valueName,
T value)
Edit the value :
type > valueName:value
|
public T get(IDetectionKeys<?> type, String valueName, T defaultValue)
type - where the value isvalueName - the value namedefaultValue - returned when type or valueName not saved / don't existpublic void set(IDetectionKeys<?> type, String valueName, T value)
type - where the value will bevalueName - the value keyvalue - the saved valuepublic T remove(IDetectionKeys<?> type, String valueName)
type - where the value to remove isvalueName - the value to removepublic boolean has(IDetectionKeys<?> type, String valueName)
type - the key of the detectionvalueName - the name of the valuepublic HashMap<String,T> getAllContent(IDetectionKeys<?> type)