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 unsynchronizedRemove(ActiveMQDestination key, Object value) { if (key.isComposite()) { ActiveMQDestination[] destinations = key.getCompositeDestinations(); for (int i = 0; i < destinations.length; i++) { ActiveMQDestination childDestination = destinations[i]; remove(childDestination, value); } return; } String[] paths = key.getDestinationPaths(); getRootNode(key).remove(paths, 0, 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 { 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); } }
public void unsynchronizedRemove(ActiveMQDestination key, Object value) { if (key.isComposite()) { ActiveMQDestination[] destinations = key.getCompositeDestinations(); for (int i = 0; i < destinations.length; i++) { ActiveMQDestination childDestination = destinations[i]; remove(childDestination, value); } return; } String[] paths = key.getDestinationPaths(); getRootNode(key).remove(paths, 0, value); }
public void unsynchronizedRemove(ActiveMQDestination key, Object value) { if (key.isComposite()) { ActiveMQDestination[] destinations = key.getCompositeDestinations(); for (int i = 0; i < destinations.length; i++) { ActiveMQDestination childDestination = destinations[i]; remove(childDestination, value); } return; } String[] paths = key.getDestinationPaths(); getRootNode(key).remove(paths, 0, value); }
public void unsynchronizedRemove(ActiveMQDestination key, Object value) { if (key.isComposite()) { ActiveMQDestination[] destinations = key.getCompositeDestinations(); for (int i = 0; i < destinations.length; i++) { ActiveMQDestination childDestination = destinations[i]; remove(childDestination, value); } return; } String[] paths = key.getDestinationPaths(); getRootNode(key).remove(paths, 0, value); }
/** * Removes the value from the associated destination */ public synchronized void remove(ActiveMQDestination key, Object value) { if (key.isComposite()) { ActiveMQDestination[] destinations = key.getCompositeDestinations(); for (int i = 0; i < destinations.length; i++) { ActiveMQDestination childDestination = destinations[i]; remove(childDestination, value); } return; } String[] paths = key.getDestinationPaths(); getRootNode(key).remove(paths, 0, value); }