public boolean remove (final Node[] arr) { try { PR.enterWriteAccess (); if (nodes != null) { // removing from array, just if the array nodes are // really created // expecting arr.length == 1, which is the usual case for (int i = 0; i < arr.length; i++) { if (!nodes.contains (arr[i])) { arr[i] = null; } } superRemove (arr); } } finally { PR.exitWriteAccess (); } return true; }
public boolean remove (final Node[] arr) { try { PR.enterWriteAccess (); if (nodes != null) { // removing from array, just if the array nodes are // really created // expecting arr.length == 1, which is the usual case for (int i = 0; i < arr.length; i++) { if (!nodes.contains (arr[i])) { arr[i] = null; } } superRemove (arr); } } finally { PR.exitWriteAccess (); } return true; }