int column = 0;
Function1 function = new Function1() {
@Override
public Object apply(Object element) {
VersionDTO version = asVersionDTO(element);
if (version != null) {
return version.getId();
}
return null;
}
};
column = addColumnFunction(250, column, function, "Id");
function = new Function1() {
@Override
public Boolean apply(Object element) {
VersionDTO version = asVersionDTO(element);
if (version != null) {
return version.isDefaultVersion();
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "Default");