// These are represented as something like
// C$1:C$65535 or D$1:F$0
// i.e. absolute from 1st row to 0th one
- if(topLeft.getRow() == 0 && topLeft.isRowAbsolute() &&
- botRight.getRow() == version.getLastRowIndex() && botRight.isRowAbsolute()) {
- return true;
- }
- return false;
+ return (topLeft.getRow() == 0
+ && topLeft.isRowAbsolute()
+ && botRight.getRow() == version.getLastRowIndex()
+ && botRight.isRowAbsolute());
}
public boolean isWholeColumnReference() {
return isWholeColumnReference(_version, _firstCell, _lastCell);
copyAttributes(font, str, 0, "1w".length());
TextLayout layout = new TextLayout(str.getIterator(), fontRenderContext);
- if(layout.getBounds().getWidth() > 0) {
- return true;
- }
-
- return false;
+ return (layout.getBounds().getWidth() > 0);
}
/**