/** * Intended to be called by extending classes {@link #isEmpty()} implementations, returns <code>true</code> if all * content in this superclass instance is empty per the semantics of {@link #isEmpty()}. */ protected boolean isBaseEmpty() { if (myUndeclaredExtensions != null) { for (ExtensionDt next : myUndeclaredExtensions) { if (next == null) { continue; } if (!next.isEmpty()) { return false; } } } if (myUndeclaredModifierExtensions != null) { for (ExtensionDt next : myUndeclaredModifierExtensions) { if (next == null) { continue; } if (!next.isEmpty()) { return false; } } } return true; }
/** * Intended to be called by extending classes {@link #isEmpty()} implementations, returns <code>true</code> if all * content in this superclass instance is empty per the semantics of {@link #isEmpty()}. */ protected boolean isBaseEmpty() { if (myUndeclaredExtensions != null) { for (ExtensionDt next : myUndeclaredExtensions) { if (next == null) { continue; } if (!next.isEmpty()) { return false; } } } if (myUndeclaredModifierExtensions != null) { for (ExtensionDt next : myUndeclaredModifierExtensions) { if (next == null) { continue; } if (!next.isEmpty()) { return false; } } } return true; }