
xdean.csv.fluent.Util Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluent-csv Show documentation
Show all versions of fluent-csv Show documentation
Fluent and Flexible CSV Framework
The newest version!
package xdean.csv.fluent;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import xdean.csv.CsvColumn;
import xdean.csv.CsvException;
class Util {
static Optional> findColumn(List> columns, String name) {
return columns.stream()
.filter(c -> Objects.equals(c.name(), name))
.findAny();
}
static void assertTrue(boolean b, String msg, Object... args) throws CsvException {
if (!b) {
throw new CsvException(msg, args);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy