int (RowInfo.Filter filter, IFilter iFilter) { int changedBit = 0; int anyBitSet = 1; rowEntry.row = 0; for (RowInfo ri : rows) { boolean set = !iFilter.isEnabled() || iFilter.include(rowEntry); if (filter.set(ri, set)) { changedBit = 1; } if (set) { anyBitSet = 2; } rowEntry.row++; } return changedBit | anyBitSet; }