Interface Pointers.Builder

All Superinterfaces:
AbstractBuilder<Pointers>
Enclosing interface:
Pointers

public static sealed interface Pointers.Builder extends AbstractBuilder<Pointers>
A builder of pointers.
Since:
4.8.0
See Also:
  • 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 pointer
      value - 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 pointer
      value - the value supplier
      Returns:
      this builder
      Since:
      4.8.0