com.tecacet.jflat8.predicates.EmptyLinePredicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jflat8 Show documentation
Show all versions of jflat8 Show documentation
Convert flat files to Java Beans and vice versa.
Some supported formats are CSV, fixed-width, arbitrary regex, and more.
JFlat 8 is highly extensible and can be adopted to support additional formats.
package com.tecacet.jflat8.predicates;
import java.util.function.BiPredicate;
public class EmptyLinePredicate implements BiPredicate {
@Override
public boolean test(Long lineNumber, String line) {
return line != null && !line.isEmpty();
}
}