@Test public void testGetPasteboard() { final Host s = new Host(new TestProtocol(Scheme.ftp), "l"); final PathPasteboard pasteboard = PathPasteboardFactory.getPasteboard(s); assertNotNull(pasteboard); assertEquals(pasteboard, PathPasteboardFactory.getPasteboard(s)); assertSame(pasteboard, PathPasteboardFactory.getPasteboard(s)); }
public static PathPasteboard getPasteboard(final Host bookmark) { if(null == bookmark) { return null; } if(!pasteboards.containsKey(bookmark)) { pasteboards.put(bookmark, new PathPasteboard(bookmark)); } return pasteboards.get(bookmark); }
PathPasteboardFactory { public static PathPasteboard getPasteboard(final Host bookmark) { if(null == bookmark) { return null; } if(!pasteboards.containsKey(bookmark)) { pasteboards.put(bookmark, new PathPasteboard(bookmark)); } return pasteboards.get(bookmark); } }
PathPasteboardFactory { public static PathPasteboard getPasteboard(final Host bookmark) { if(null == bookmark) { return null; } if(!pasteboards.containsKey(bookmark)) { pasteboards.put(bookmark, new PathPasteboard(bookmark)); } return pasteboards.get(bookmark); } private  PathPasteboardFactory(); }
PathPasteboardFactory { public static PathPasteboard getPasteboard(final Host bookmark) { if(null == bookmark) { return null; } if(!pasteboards.containsKey(bookmark)) { pasteboards.put(bookmark, new PathPasteboard(bookmark)); } return pasteboards.get(bookmark); } private  PathPasteboardFactory(); static PathPasteboard getPasteboard(final Host bookmark); static List<PathPasteboard> allPasteboards(); static void delete(final Host bookmark); }
PathPasteboardFactory { public static PathPasteboard getPasteboard(final Host bookmark) { if(null == bookmark) { return null; } if(!pasteboards.containsKey(bookmark)) { pasteboards.put(bookmark, new PathPasteboard(bookmark)); } return pasteboards.get(bookmark); } private  PathPasteboardFactory(); static PathPasteboard getPasteboard(final Host bookmark); static List<PathPasteboard> allPasteboards(); static void delete(final Host bookmark);  }