Interface IWithData<R>
- Type Parameters:
R- the type of the object
- All Known Subinterfaces:
Holder<T>,IHolderExtension<T>
- All Known Implementing Classes:
DeferredBlock,DeferredHolder,DeferredItem,Holder.Direct,Holder.Reference,RegistrySetBuilder.LazyHolder
public interface IWithData<R>
Represents a registry object (usually a
Holder) that has data maps.-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> TgetData(DataMapType<R, T> type) Returns the data of the given type that is attached to this object, ornullif one isn't.
-
Method Details
-
getData
Returns the data of the given type that is attached to this object, ornullif one isn't.- Type Parameters:
T- the type of the data- Parameters:
type- the data type- Returns:
- the data of the given type that is attached to this object, or
nullif one isn't
-