Interface PointersSupplier.Builder<T>

Type Parameters:
T - the type to supply pointers for
All Superinterfaces:
AbstractBuilder<PointersSupplier<T>>
Enclosing interface:
PointersSupplier<T>

public static interface PointersSupplier.Builder<T> extends AbstractBuilder<PointersSupplier<T>>
A builder for PointersSupplier.
Since:
4.17.0
  • Method Details

    • parent

      @Contract("_ -> this") @NotNull @NotNull PointersSupplier.Builder<T> parent(@Nullable @Nullable PointersSupplier<? super T> parent)
      Sets (or removes, if null) 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") @NotNull <P> @NotNull PointersSupplier.Builder<T> resolving(@NotNull @NotNull Pointer<P> pointer, @NotNull @NotNull Function<T,P> resolver)
      Adds a resolver for a given pointer.
      Type Parameters:
      P - the type of the pointer
      Parameters:
      pointer - the pointer
      resolver - the resolver
      Returns:
      this builder
      Since:
      4.17.0