/** * Removes values available at this node in the tree */ @SuppressWarnings({ "rawtypes", "unchecked" }) public List removeValues() { ArrayList v = new ArrayList(values); // parent.getAnyChildNode().getValues().removeAll(v); values.clear(); pruneIfEmpty(); return v; }
protected void removeChild(DestinationMapNode node) { childNodes.remove(node.getPath()); pruneIfEmpty(); } }
public void remove(String[] paths, int idx, Object value) { if (idx >= paths.length) { values.remove(value); pruneIfEmpty(); } else { getChildOrCreate(paths[idx]).remove(paths, ++idx, value); } }
/** * Removes values available at this node in the tree */ @SuppressWarnings({ "rawtypes", "unchecked" }) public List removeValues() { ArrayList v = new ArrayList(values); // parent.getAnyChildNode().getValues().removeAll(v); values.clear(); pruneIfEmpty(); return v; }
/** * Removes values available at this node in the tree */ @SuppressWarnings({ "rawtypes", "unchecked" }) public List removeValues() { ArrayList v = new ArrayList(values); // parent.getAnyChildNode().getValues().removeAll(v); values.clear(); pruneIfEmpty(); return v; }
/** * Returns a mutable List of the values available at this node in the tree */ public List removeValues() { ArrayList v = new ArrayList(values); // parent.getAnyChildNode().getValues().removeAll(v); values.clear(); pruneIfEmpty(); return v; }
/** * Removes values available at this node in the tree */ @SuppressWarnings({ "rawtypes", "unchecked" }) public List removeValues() { ArrayList v = new ArrayList(values); // parent.getAnyChildNode().getValues().removeAll(v); values.clear(); pruneIfEmpty(); return v; }
protected void removeChild(DestinationMapNode node) { childNodes.remove(node.getPath()); pruneIfEmpty(); } }
protected void removeChild(DestinationMapNode node) { childNodes.remove(node.getPath()); pruneIfEmpty(); } }
protected void removeChild(DestinationMapNode node) { childNodes.remove(node.getPath()); pruneIfEmpty(); } }
protected void removeChild(DestinationMapNode node) { childNodes.remove(node.getPath()); pruneIfEmpty(); } }
public void remove(String[] paths, int idx, Object value) { if (idx >= paths.length) { values.remove(value); pruneIfEmpty(); } else { getChildOrCreate(paths[idx]).remove(paths, ++idx, value); } }
public void remove(String[] paths, int idx, Object value) { if (idx >= paths.length) { values.remove(value); pruneIfEmpty(); } else { getChildOrCreate(paths[idx]).remove(paths, ++idx, value); } }
public void remove(String[] paths, int idx, Object value) { if (idx >= paths.length) { values.remove(value); pruneIfEmpty(); } else { getChildOrCreate(paths[idx]).remove(paths, ++idx, value); } }
public void remove(String[] paths, int idx, Object value) { if (idx >= paths.length) { values.remove(value); pruneIfEmpty(); } else { // if (idx == paths.length - 1) { // getAnyChildNode().getValues().remove(value); // } // else { // getAnyChildNode().remove(paths, idx + 1, value); // } getChildOrCreate(paths[idx]).remove(paths, ++idx, value); } }