Class FugueCollectors.Ref<A>

  • Type Parameters:
    A - reference type
    Enclosing class:
    FugueCollectors

    private static final class FugueCollectors.Ref<A>
    extends java.lang.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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private A value  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Ref​(A value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private A get()  
      private void update​(java.util.function.UnaryOperator<A> update)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        private A value
    • Constructor Detail

      • Ref

        private Ref​(A value)
    • Method Detail

      • get

        private A get()
      • update

        private void update​(java.util.function.UnaryOperator<A> update)