Class DataComponent.Holder
java.lang.Object
com.saicone.rtag.data.DataComponent.Holder
- Enclosing class:
DataComponent
Class to invoke methods from DataComponentHolder.
This type of data component object (as the name said) is just a holder for DataComponentMap to delegate methods.
This type of data component object (as the name said) is just a holder for DataComponentMap to delegate methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectGet a declared component type from provided holder.static ObjectgetComponents(Object holder) Get DataComponentMap from provided holder.static booleanCheck if the provided holder has any type of DataComponentType inside.
-
Method Details
-
getComponents
-
get
Get a declared component type from provided holder.- Parameters:
holder- the component holder to get component from.type- the DataComponentType instance that declares a component type.- Returns:
- the component declared type from data component cache if exists, null otherwise.
-
has
-