public final class Delegation extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Delegation.Builder<T,D>
The new instance will default it's
Object.toString() method to the one of the
provided delegate. |
| Modifier and Type | Method and Description |
|---|---|
static <D> Delegation.Builder<Object,D> |
of(D delegate)
Creates and returns a new builder for a delegator instance that is using the provided
delegate as a delegate. |
public static <D> Delegation.Builder<Object,D> of(@NotNull D delegate)
delegate as a delegate. I.e. methods invoked on a built instance will be delegated to the
provided delegate.D - provided delegate typedelegate - to delegate invocations toNullPointerException - if any provided parameter is null.Copyright © 2023. All rights reserved.