Class FugueCollectors.Ref<A>

java.lang.Object
io.atlassian.fugue.FugueCollectors.Ref<A>
Type Parameters:
A - reference type
Enclosing class:
FugueCollectors

private static final class FugueCollectors.Ref<A> extends Object
Mutable reference. Used to carry collectors state. Specifically for Collector.accumulator() because it should always mutate the collectors state in-place. Not thread safe! Collector.Characteristics.CONCURRENT must not be present in the list of collector's characteristics.
Since:
4.8.0
  • Field Details

    • value

      private A value
  • Constructor Details

    • Ref

      private Ref(A value)
  • Method Details

    • get

      private A get()
    • update

      private void update(UnaryOperator<A> update)