Class AbstractDelegator<T>
- java.lang.Object
-
- org.opendaylight.yangtools.concepts.AbstractDelegator<T>
-
- Type Parameters:
T
- Type of delegate
- All Implemented Interfaces:
Delegator<T>
@Beta @NonNullByDefault public abstract class AbstractDelegator<T> extends Object implements Delegator<T>
Simple base class for classes which wish to implementDelegator
interface and are not otherwise constrained in their class hierarchy.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDelegator(T delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MoreObjects.ToStringHelper
addToString(MoreObjects.ToStringHelper helper)
T
getDelegate()
Return underlying delegate.String
toString()
-
-
-
Constructor Detail
-
AbstractDelegator
protected AbstractDelegator(T delegate)
-
-
Method Detail
-
getDelegate
public final T getDelegate()
Description copied from interface:Delegator
Return underlying delegate.- Specified by:
getDelegate
in interfaceDelegator<T>
- Returns:
- underlying delegate.
-
addToString
protected MoreObjects.ToStringHelper addToString(MoreObjects.ToStringHelper helper)
-
-