Interface PointersSupplier.Builder<T>
- Type Parameters:
T- the type to supply pointers for
- All Superinterfaces:
AbstractBuilder<PointersSupplier<T>>
- Enclosing interface:
PointersSupplier<T>
public static sealed interface PointersSupplier.Builder<T>
extends AbstractBuilder<PointersSupplier<T>>
A builder for
PointersSupplier.- Since:
- 4.17.0
-
Method Summary
Modifier and TypeMethodDescriptionparent(@Nullable PointersSupplier<? super T> parent) Sets (or removes, ifnull) the parent pointer supplier that will be used to resolve pointers that are not supplied by this supplier.Adds a resolver for a given pointer.Methods inherited from interface AbstractBuilder
build
-
Method Details
-
parent
@Contract("_ -> this") PointersSupplier.Builder<T> parent(@Nullable PointersSupplier<? super T> parent) Sets (or removes, ifnull) the parent pointer supplier that will be used to resolve pointers that are not supplied by this supplier.- Parameters:
parent- the parent- Returns:
- this builder
- Since:
- 4.17.0
-
resolving
@Contract("_, _ -> this") <P> PointersSupplier.Builder<T> resolving(Pointer<P> pointer, Function<T, P> resolver) Adds a resolver for a given pointer.- Type Parameters:
P- the type of the pointer- Parameters:
pointer- the pointerresolver- the resolver- Returns:
- this builder
- Since:
- 4.17.0
-