public void testClone() { IdentityMap map = new IdentityMap(10); map.put("1", "1"); Map cloned = (Map) map.clone(); assertEquals(map.size(), cloned.size()); assertSame(map.get("1"), cloned.get("1")); }
/** * Record the attached copy in the cache. */ void setAttachedCopy(Object from, PersistenceCapable into) { _attached.put(from, into); }
/** * Record the attached copy in the cache. */ void setAttachedCopy(Object from, PersistenceCapable into) { _attached.put(from, into); }
/** * Record the attached copy in the cache. */ void setAttachedCopy(Object from, PersistenceCapable into) { _attached.put(from, into); }
/** * Record the attached copy in the cache. */ void setAttachedCopy(Object from, PersistenceCapable into) { _attached.put(from, into); }
/** * Record the attached copy in the cache. */ void setAttachedCopy(Object from, PersistenceCapable into) { _attached.put(from, into); }
iconURLs.put(APPEARANCE, "/22x22/appearance.png"); iconURLs.put(APPOINTMENT, "/22x22/appointment.png"); iconURLs.put(ARROW1DOWN, "/22x22/arrow1Down.png"); iconURLs.put(ARROW1LEFT, "/22x22/arrow1Left.png"); iconURLs.put(ARROW1RIGHT, "/22x22/arrow1Right.png"); iconURLs.put(ARROW1UP, "/22x22/arrow1Up.png"); iconURLs.put(ARROW2DOWN, "/22x22/arrow2Down.png"); iconURLs.put(ARROW2LEFT, "/22x22/arrow2Left.png"); iconURLs.put(ARROW2RIGHT, "/22x22/arrow2Right.png"); iconURLs.put(ARROW2UP, "/22x22/arrow2Up.png"); iconURLs.put(ATTACH, "/22x22/attach.png"); iconURLs.put(CANCEL, "/22x22/cancel.png"); iconURLs.put(CLOSE, "/22x22/close.png"); iconURLs.put(FIND, "/22x22/find.png"); iconURLs.put(FONTS, "/22x22/fonts.png"); iconURLs.put(FULLSCREEN, "/22x22/fullscreen.png"); iconURLs.put(HELP, "/22x22/help.png"); iconURLs.put(IDEA, "/22x22/idea.png"); iconURLs.put(INFO, "/22x22/info.png"); iconURLs.put(LINK, "/22x22/redo.png"); iconURLs.put(MAIL, "/22x22/mail.png"); iconURLs.put(MAILGET, "/22x22/mailGet.png"); iconURLs.put(MAILNEW, "/22x22/mailNew.png"); iconURLs.put(MAILSEND, "/22x22/mailSend.png"); iconURLs.put(NEW, "/22x22/new.png"); iconURLs.put(NOFULLSCREEN, "/22x22/nofullscreen.png"); iconURLs.put(OK, "/22x22/ok.png"); iconURLs.put(OPEN, "/22x22/open.png"); iconURLs.put(PRINT, "/22x22/print.png");
public int getUniqueId(ExplanationNumberValue<?> value) { Integer id = (Integer)value2id.get(value); if (id != null) { return id.intValue(); } id = new Integer(++uniqueId); value2id.put(value, id); id2value.put(id, value); return id.intValue(); }
detachedPC = pc; if (_detached != null) _detached.put(toDetach, detachedPC);
detachedPC = pc; if (_detached != null) _detached.put(toDetach, detachedPC);
detachedPC = pc; if (_detached != null) _detached.put(toDetach, detachedPC);
detachedPC = pc; if (_detached != null) _detached.put(toDetach, detachedPC);
detachedPC = pc; if (_detached != null) _detached.put(toDetach, detachedPC);