Interface BulkOperation.Builder.HasSet<ENTITY,​B>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      B compute​(Function<? super ENTITY,​? extends ENTITY> mapper)
      Specifies an entity mapper for the operation whereby the mapper will mutate the entity in some way when applied.
      B set​(Consumer<? super ENTITY> consumer)
      Specifies an entity consumer for the operation whereby the consumer will mutate the entity in some way when applied.
    • Method Detail

      • compute

        B compute​(Function<? super ENTITY,​? extends ENTITY> mapper)
        Specifies an entity mapper for the operation whereby the mapper will mutate the entity in some way when applied.

        Specifying several compute() and/or several set() operations will be equivalent to applying all those operations on entities (e.g. a functional reduction)

        Parameters:
        mapper - to apply when updating entities
        Returns:
        a builder where the given mapper has been applied
      • set

        B set​(Consumer<? super ENTITY> consumer)
        Specifies an entity consumer for the operation whereby the consumer will mutate the entity in some way when applied.

        Specifying several compute() and/or several set() operations will be equivalent to applying all those operations on entities (e.g. a functional reduction)

        Parameters:
        consumer - to apply when updating entities
        Returns:
        a builder where the given consumer has been applied