public static final class MultiLineReader.Entry extends Object implements Iterable<String>
MultiLineReader
. It consists of one or more lines.
Entries are immutable.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
void |
forEach(Consumer<? super String> action)
Performs the given action for each element of the entry until all elements have been processed or the action throws an exception.
|
int |
hashCode() |
Iterator<String> |
iterator() |
List<String> |
lines()
Returns all lines of this entry as a list.
|
Spliterator<String> |
spliterator() |
Stream<String> |
stream()
Returns a stream over the lines.
|
String |
toString() |
public List<String> lines()
public Spliterator<String> spliterator()
spliterator
in interface Iterable<String>
public Stream<String> stream()
public void forEach(Consumer<? super String> action)
Copyright © 2020–2024. All rights reserved.