@Test public void transform() { LineSequence lineSequence = LineSequence.create("one").transform(input -> { throw new UnsupportedOperationException(); }); assertNotNull(lineSequence); assertEquals(TransformLineSequence.class, lineSequence.getClass()); }
public LineSequence transform(Function<Line, Line> transform) { return new TransformLineSequence(this, transform); }
LineSequence implements Iterable<Line> { public LineSequence transform(Function<Line, Line> transform) { return new TransformLineSequence(this, transform); } }
LineSequence implements Iterable<Line> { public LineSequence transform(Function<Line, Line> transform) { return new TransformLineSequence(this, transform); }  }
LineSequence implements Iterable<Line> { public LineSequence transform(Function<Line, Line> transform) { return new TransformLineSequence(this, transform); }  static LineSequence create(String content); abstract Line getCurrentLine(); abstract Line getNextLine(); abstract void advance(); void advance(int count); @Override Iterator<Line> iterator(); LineSequence with(Predicate<Line> predicate); LineSequence transform(Function<Line, Line> transform); abstract LineSequence lookAhead(); @Override String toString(); }
LineSequence implements Iterable<Line> { public LineSequence transform(Function<Line, Line> transform) { return new TransformLineSequence(this, transform); }  static LineSequence create(String content); abstract Line getCurrentLine(); abstract Line getNextLine(); abstract void advance(); void advance(int count); @Override Iterator<Line> iterator(); LineSequence with(Predicate<Line> predicate); LineSequence transform(Function<Line, Line> transform); abstract LineSequence lookAhead(); @Override String toString();  }