Package septogeddon.pluginquery
Class QueryMetadataImpl
java.lang.Object
septogeddon.pluginquery.QueryMetadataImpl
- All Implemented Interfaces:
QueryMetadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParent
(QueryMetadata metadata) Add parent for further lookup<T> boolean
containsData
(QueryMetadataKey<T> key) Check if this storage contains wanted data, does not check the parent<T> T
getData
(QueryMetadataKey<T> key) Get data from this storage and parent storage<T> T
getData
(QueryMetadataKey<T> key, T defaultValue) Get data from this storage and parent storage, will use defaultValue if its nullvoid
removeParent
(QueryMetadata metadata) Remove parent<T> void
setData
(QueryMetadataKey<T> key, T value) Set data to current storage, will remove if its null, does not affect the parent metadata
-
Constructor Details
-
QueryMetadataImpl
public QueryMetadataImpl()
-
-
Method Details
-
getData
Description copied from interface:QueryMetadata
Get data from this storage and parent storage- Specified by:
getData
in interfaceQueryMetadata
- Type Parameters:
T
-- Parameters:
key
-- Returns:
-
setData
Description copied from interface:QueryMetadata
Set data to current storage, will remove if its null, does not affect the parent metadata- Specified by:
setData
in interfaceQueryMetadata
- Type Parameters:
T
-- Parameters:
key
-value
-
-
getData
Description copied from interface:QueryMetadata
Get data from this storage and parent storage, will use defaultValue if its null- Specified by:
getData
in interfaceQueryMetadata
- Type Parameters:
T
-- Parameters:
key
-defaultValue
-- Returns:
-
addParent
Description copied from interface:QueryMetadata
Add parent for further lookup- Specified by:
addParent
in interfaceQueryMetadata
- Parameters:
metadata
-
-
removeParent
Description copied from interface:QueryMetadata
Remove parent- Specified by:
removeParent
in interfaceQueryMetadata
- Parameters:
metadata
-
-
containsData
Description copied from interface:QueryMetadata
Check if this storage contains wanted data, does not check the parent- Specified by:
containsData
in interfaceQueryMetadata
- Parameters:
key
-- Returns:
-