Interface PointersSupplier.Builder<T>

    • Method Detail

      • 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 java.util.function.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