public class Content<T> extends Object
| Constructor and Description | 
|---|
Content()  | 
| Modifier and Type | Method and Description | 
|---|---|
T | 
get(IKey<?> type,
   String valueName,
   T defaultValue)
Obtain the saved value 
 | 
HashMap<String,T> | 
getAllContent(IKey<?> type)  | 
boolean | 
has(IKey<?> type,
   String valueName)
Check if the given value is set or not 
 | 
T | 
remove(IKey<?> type,
      String valueName)
Remove value for the specified type 
 | 
void | 
set(IKey<?> type,
   String valueName,
   T value)
Edit the value for the specified type 
 | 
public T get(IKey<?> 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(IKey<?> type, String valueName, T value)
type - where the value will bevalueName - the value keyvalue - the saved valuepublic T remove(IKey<?> type, String valueName)
type - where the value to remove isvalueName - the value to removepublic boolean has(IKey<?> type, String valueName)
type - the key of the detectionvalueName - the name of the value