use of tech.tablesaw.api.BooleanColumn in project symja_android_library by axkr.
the class BooleanMapUtils method or.
default BooleanColumn or(BooleanColumn... columns) {
StringBuilder name = new StringBuilder(name()).append(" or: ");
Selection selection = asSelection();
for (BooleanColumn column : columns) {
if (!column.name().equals(columns[0].name())) {
name.append(", ");
}
name.append(column.name());
selection.or(column.asSelection());
}
return BooleanColumn.create(name.toString(), selection, size());
}
use of tech.tablesaw.api.BooleanColumn in project symja_android_library by axkr.
the class BooleanMapUtils method and.
/*
* Returns a Boolean column made by and-ing this column with the arguments
*/
default BooleanColumn and(BooleanColumn... columns) {
StringBuilder name = new StringBuilder(name()).append(" and: ");
Selection selection = asSelection();
for (BooleanColumn column : columns) {
if (!column.name().equals(columns[0].name())) {
name.append(", ");
}
name.append(column.name());
selection.and(column.asSelection());
}
return BooleanColumn.create(name.toString(), selection, size());
}
Aggregations