Interface Pointers.Builder
- All Superinterfaces:
AbstractBuilder<Pointers>
- Enclosing interface:
Pointers
A builder of pointers.
- Since:
- 4.8.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T> Pointers.BuilderwithDynamic(Pointer<T> pointer, Supplier<@Nullable T> value) Adds a pointer with a dynamic value provided by a supplier.default <T> Pointers.BuilderwithStatic(Pointer<T> pointer, @Nullable T value) Adds a pointer with a static, optional value.Methods inherited from interface AbstractBuilder
build
-
Method Details
-
withStatic
@Contract("_, _ -> this") default <T> Pointers.Builder withStatic(Pointer<T> pointer, @Nullable T value) Adds a pointer with a static, optional value.- Type Parameters:
T- the type- Parameters:
pointer- the pointervalue- the optional value- Returns:
- this builder
- Since:
- 4.8.0
-
withDynamic
@Contract("_, _ -> this") <T> Pointers.Builder withDynamic(Pointer<T> pointer, Supplier<@Nullable T> value) Adds a pointer with a dynamic value provided by a supplier.- Type Parameters:
T- the type- Parameters:
pointer- the pointervalue- the value supplier- Returns:
- this builder
- Since:
- 4.8.0
-