public final class Delegation extends Object
This class cannot be instantiated.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Delegation.Builder<T,D>
Interface for building a delegation object.
|
| 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 will use the provided
delegate as the delegate. |
public static <D> Delegation.Builder<Object,D> of(@NotNull D delegate)
delegate as the delegate. Method invocations on the built instance will be delegated to the
provided delegate.D - Provided delegate typedelegate - The object to delegate invocations toNullPointerException - if the provided delegate is null.Copyright © 2023. All rights reserved.