@Override public Sequence<Component> remove(int index, int count) { for (int i = index, n = index + count; i < n; i++) { Component component = get(i); if (component == content) { throw new UnsupportedOperationException(); } } // Call the base method to remove the components return super.remove(index, count); }
@Override public Sequence<Component> remove(int index, int count) { for (int i = index, n = index + count; i < n; i++) { Component component = get(i); if (component == content) { throw new UnsupportedOperationException(); } } // Call the base method to remove the components return super.remove(index, count); }