@Override public boolean add(final Node[] arr) { synchronized (COLLECTION_LOCK) { if (!getCollection().addAll(Arrays.asList(arr))) { // no change to the collection return false; } } refresh(); return true; }
@Override public boolean remove(final Node[] arr) { synchronized (COLLECTION_LOCK) { if (!getCollection().removeAll(Arrays.asList(arr))) { // the collection was not changed return false; } } refresh(); return true; }
public boolean add (final Node[] arr) { synchronized (getNodesEntry ()) { if (!getCollection ().addAll (Arrays.asList (arr))) { // no change to the collection return false; }; } refresh (); return true; }
public boolean remove (final Node[] arr) { synchronized (getNodesEntry ()) { if (!getCollection ().removeAll (Arrays.asList (arr))) { // the collection was not changed return false; } } refresh (); return true; }
public boolean remove (final Node[] arr) { synchronized (getNodesEntry ()) { if (!getCollection ().removeAll (Arrays.asList (arr))) { // the collection was not changed return false; } } refresh (); return true; }
public boolean add (final Node[] arr) { synchronized (getNodesEntry ()) { if (!getCollection ().addAll (Arrays.asList (arr))) { // no change to the collection return false; }; } refresh (); return true; }