Package me.hsgamer.hscore.task.element
Interface TaskData
public interface TaskData
The data storage for the task
-
Method Summary
Modifier and TypeMethodDescriptionstatic TaskData
create()
Create a new instance of TaskData that usesConcurrentHashMap
default <T> T
Get the value from the dataGet the raw value from the dataPut the value to the data
-
Method Details
-
create
Create a new instance of TaskData that usesConcurrentHashMap
- Returns:
- the new instance
-
put
Put the value to the data- Parameters:
key
- the keyvalue
- the value- Returns:
- the previous value associated with the key or null if there is none
-
getRaw
Get the raw value from the data- Parameters:
key
- the key- Returns:
- the value or null if there is none
-
get
Get the value from the data- Type Parameters:
T
- the type of the value- Parameters:
key
- the key- Returns:
- the value or null if there is none
- Throws:
ClassCastException
- if the value is not the same type as the type of the value
-