Package dev.demeng.pluginbase.delegate
Interface Delegate<T>
- Type Parameters:
T- The delegate type
public interface Delegate<T>
Represents a class which delegates calls to a different object.
-
Method Summary
Modifier and TypeMethodDescriptionGets the delegate object.static ObjectResolves for the provided object.
-
Method Details
-
resolve
Resolves for the provided object.- Parameters:
obj- The object to resolve- Returns:
- The delegated result
-
getDelegate
T getDelegate()Gets the delegate object.- Returns:
- The delegate object
-