/** * Version of {@link #onModified()} that throws an unchecked exception for compliance with {@link List}. */ private void _onModified() { try { onModified(); } catch (IOException e) { throw new RuntimeException(e); } }
public void removeAll(Class<? extends T> type) throws IOException { boolean modified=false; for (T t : data) { if(t.getClass()==type) { data.remove(t); modified=true; } } if(modified) onModified(); }
/** * Removes an instance by its type. */ public void remove(Class<? extends T> type) throws IOException { for (T t : data) { if(t.getClass()==type) { data.remove(t); onModified(); return; } } }
public void replaceBy(Collection<? extends T> col) throws IOException { data.replaceBy(col); onModified(); }
/** * Version of {@link #onModified()} that throws an unchecked exception for compliance with {@link List}. */ private void _onModified() { try { onModified(); } catch (IOException e) { throw new RuntimeException(e); } }
/** * Removes an instance by its type. */ public void remove(Class<? extends T> type) throws IOException { for (T t : data) { if(t.getClass()==type) { data.remove(t); onModified(); return; } } }
/** * Removes an instance by its type. */ public void remove(Class<? extends T> type) throws IOException { for (T t : data) { if (t.getClass() == type) { data.remove(t); onModified(); return; } } }
/** * Removes an instance by its type. */ public void remove(Class<? extends T> type) throws IOException { for (T t : data) { if(t.getClass()==type) { data.remove(t); onModified(); return; } } }
public boolean remove(T o) throws IOException { boolean b = data.remove(o); if (b) onModified(); return b; }
public void removeAll(Class<? extends T> type) throws IOException { boolean modified=false; for (T t : data) { if(t.getClass()==type) { data.remove(t); modified=true; } } if(modified) onModified(); }
public boolean remove(T o) throws IOException { boolean b = data.remove(o); if (b) { onModified(); } return b; }
public void removeAll(Class<? extends T> type) throws IOException { boolean modified=false; for (T t : data) { if(t.getClass()==type) { data.remove(t); modified=true; } } if(modified) onModified(); }
public void removeAll(Class<? extends T> type) throws IOException { boolean modified = false; for (T t : data) { if (t.getClass() == type) { data.remove(t); modified = true; } } if (modified) { onModified(); } }
public boolean remove(T o) throws IOException { boolean b = data.remove(o); if (b) onModified(); return b; }
/** * Removes an instance by its type. */ public void remove(Class<? extends T> type) throws IOException { for (T t : data) { if(t.getClass()==type) { data.remove(t); onModified(); return; } } }
public void removeAll(Class<? extends T> type) throws IOException { boolean modified=false; for (T t : data) { if(t.getClass()==type) { data.remove(t); modified=true; } } if(modified) onModified(); }
public void replaceBy(Collection<? extends T> col) throws IOException { data.replaceBy(col); onModified(); }
/** * Removes an instance by its type. */ public void remove(Class<? extends T> type) throws IOException { for (T t : data) { if(t.getClass()==type) { data.remove(t); onModified(); return; } } }
public void addAll(Collection<? extends T> items) throws IOException { data.addAll(items); onModified(); }
public void removeAll(Class<? extends T> type) throws IOException { boolean modified=false; for (T t : data) { if(t.getClass()==type) { data.remove(t); modified=true; } } if(modified) onModified(); }