Class MoreCollectors.ToOptionalState

  • Enclosing class:
    MoreCollectors

    private static final class MoreCollectors.ToOptionalState
    extends java.lang.Object
    This atrocity is here to let us report several of the elements in the stream if there were more than one, not just two.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Object element  
      (package private) java.util.List<java.lang.Object> extras  
      (package private) static int MAX_EXTRAS  
    • Constructor Summary

      Constructors 
      Constructor Description
      ToOptionalState()  
    • Field Detail

      • element

        java.lang.Object element
      • extras

        java.util.List<java.lang.Object> extras
    • Constructor Detail

      • ToOptionalState

        ToOptionalState()