/**
* Creates a {@link PropertyIDMap} backed by another map.
*
- * @param map The instance to be created is backed by this map.
+ * @param idValues an array of key/value pairs via nested Object[2] arrays
*/
private PropertyIDMap(Object[][] idValues) {
Map<Long,String> m = new HashMap<>(idValues.length);
*/
@Override
public boolean getHidden() {
- if (!_cellXf.isSetProtection() || !_cellXf.getProtection().isSetHidden()) {
- return false;
- }
- return _cellXf.getProtection().getHidden();
+ return _cellXf.isSetProtection() && _cellXf.getProtection().isSetHidden() && _cellXf.getProtection().getHidden();
}
/**
*/
@Override
public boolean getLocked() {
- if (!_cellXf.isSetProtection() || !_cellXf.getProtection().isSetLocked()) {
- return true;
- }
- return _cellXf.getProtection().getLocked();
+ return !_cellXf.isSetProtection() || !_cellXf.getProtection().isSetLocked() || _cellXf.getProtection().getLocked();
}
/**