Interface UAccumulator<R,E>

All Known Implementing Classes:
UFileSizeAccumulator

public interface UAccumulator<R,E>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    push(E item)
    Push more content to the current accumulator
    void
    Adds the result of other accumulators with the same type
    Gets the result of accumulated content
  • Method Details

    • result

      @NotNull R result()
      Gets the result of accumulated content
      Returns:
      all accumulated content
    • push

      void push(@NotNull E item)
      Push more content to the current accumulator
      Parameters:
      item - The item you want to accumulate
    • pushAll

      void pushAll(@NotNull @NotNull UAccumulator<E,R> other)
      Adds the result of other accumulators with the same type
      Parameters:
      other - another accumulator