@Test public void testRemove() { localClipboardControl.set(graphInstance.startNode); assertTrue(localClipboardControl.hasElements()); localClipboardControl.remove(graphInstance.startNode); assertFalse(localClipboardControl.hasElements()); }
@Override public ClipboardControl<Element, AbstractCanvas, ClientSession> remove(Element... element) { elements.removeAll(Arrays.stream(element).collect(Collectors.toSet())); return this; }
LocalClipboardControl extends AbstractCanvasControl<AbstractCanvas> implements ClipboardControl<Element, AbstractCanvas, ClientSession> { @Override public ClipboardControl<Element, AbstractCanvas, ClientSession> remove(Element... element) { elements.removeAll(Arrays.stream(element).collect(Collectors.toSet())); return this; } }
LocalClipboardControl extends AbstractCanvasControl<AbstractCanvas> implements ClipboardControl<Element, AbstractCanvas, ClientSession> { @Override public ClipboardControl<Element, AbstractCanvas, ClientSession> remove(Element... element) { elements.removeAll(Arrays.stream(element).collect(Collectors.toSet())); return this; } LocalClipboardControl(); }
LocalClipboardControl extends AbstractCanvasControl<AbstractCanvas> implements ClipboardControl<Element, AbstractCanvas, ClientSession> { @Override public ClipboardControl<Element, AbstractCanvas, ClientSession> remove(Element... element) { elements.removeAll(Arrays.stream(element).collect(Collectors.toSet())); return this; } LocalClipboardControl(); @Override ClipboardControl<Element, AbstractCanvas, ClientSession> set(Element... element); @Override ClipboardControl<Element, AbstractCanvas, ClientSession> remove(Element... element); @Override Collection<Element> getElements(); @Override ClipboardControl<Element, AbstractCanvas, ClientSession> clear(); @Override boolean hasElements(); @Override String getParent(String uuid); @Override List<Command> getRollbackCommands(); @Override ClipboardControl<Element, AbstractCanvas, ClientSession> setRollbackCommand(Command... command); @Override Map<String, EdgeClipboard> getEdgeMap(); @Override EdgeClipboard buildNewEdgeClipboard(final String source, final Connection sourceConnection, final String target, final Connection targetConnection); }
LocalClipboardControl extends AbstractCanvasControl<AbstractCanvas> implements ClipboardControl<Element, AbstractCanvas, ClientSession> { @Override public ClipboardControl<Element, AbstractCanvas, ClientSession> remove(Element... element) { elements.removeAll(Arrays.stream(element).collect(Collectors.toSet())); return this; } LocalClipboardControl(); @Override ClipboardControl<Element, AbstractCanvas, ClientSession> set(Element... element); @Override ClipboardControl<Element, AbstractCanvas, ClientSession> remove(Element... element); @Override Collection<Element> getElements(); @Override ClipboardControl<Element, AbstractCanvas, ClientSession> clear(); @Override boolean hasElements(); @Override String getParent(String uuid); @Override List<Command> getRollbackCommands(); @Override ClipboardControl<Element, AbstractCanvas, ClientSession> setRollbackCommand(Command... command); @Override Map<String, EdgeClipboard> getEdgeMap(); @Override EdgeClipboard buildNewEdgeClipboard(final String source, final Connection sourceConnection, final String target, final Connection targetConnection);  }