Interface DataHolderBuilder<H extends DataHolder,​B extends DataHolderBuilder<H,​B>>

    • Method Detail

      • add

        default B add​(Value<?> value)
        Adds the given Value to the builder. The Value is copied when the DataHolder is created.
        Parameters:
        value - The value to add
        Returns:
        This builder, for chaining
      • add

        default B add​(Iterable<? extends Value<?>> values)
        Adds all the Values to the builder. The Values are copied when the DataHolder is created.
        Parameters:
        values - The values to add
        Returns:
        This builder, for chaining
      • addFrom

        default B addFrom​(DataHolder dataHolder)
        Adds all the Values from the DataHolder to the builder. The Values are copied when the DataHolder is created.
        Parameters:
        dataHolder - The data holder to add data from
        Returns:
        This builder, for chaining
      • add

        <V> B add​(Key<? extends Value<V>> key,
                  V value)
        Adds the given Key with the given value.
        Type Parameters:
        V - The type of the value
        Parameters:
        key - The key to assign the value with
        value - The value to assign with the key
        Returns:
        This builder, for chaining
      • add

        default <V> B add​(Supplier<? extends Key<? extends Value<V>>> key,
                          V value)
        Adds the given Key with the given value.
        Type Parameters:
        V - The type of the value
        Parameters:
        key - The key to assign the value with
        value - The value to assign with the key
        Returns:
        This builder, for chaining