Class LineCollector

  • All Implemented Interfaces:
    java.util.function.Consumer<java.lang.String>

    public class LineCollector
    extends java.lang.Object
    implements java.util.function.Consumer<java.lang.String>
    • Constructor Summary

      Constructors 
      Constructor Description
      LineCollector()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(java.lang.String s)  
      java.util.List<java.lang.String> getLines()  
      java.lang.String getOutput()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

      • LineCollector

        public LineCollector()
    • Method Detail

      • accept

        public void accept​(java.lang.String s)
        Specified by:
        accept in interface java.util.function.Consumer<java.lang.String>
      • getLines

        public java.util.List<java.lang.String> getLines()
      • getOutput

        public java.lang.String getOutput()