Interface Pointers.Builder

    • Method Detail

      • withStatic

        @Contract("_, _ -> this")
        @NotNull
        default <T> @NotNull Pointers.Builder withStatic​(@NotNull
                                                         @NotNull 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")
        @NotNull
        <T> @NotNull Pointers.Builder withDynamic​(@NotNull
                                                  @NotNull Pointer<T> pointer,
                                                  @NotNull
                                                  @NotNull 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