@Test public void testPut() { StrokeMap m1 = new StrokeMap(); m1.put("A", new BasicStroke(1.1f)); assertEquals(new BasicStroke(1.1f), m1.getStroke("A")); try { m1.put(null, new BasicStroke(1.1f)); fail("IllegalArgumentException should have been thrown on null parameter"); } catch (IllegalArgumentException e) { assertEquals("Null 'key' argument.", e.getMessage()); } }
public void put(Comparable key, Stroke stroke) { ParamChecks.nullNotPermitted(key, "key"); this.store.put(key, stroke); }
StrokeMap implements Cloneable, Serializable { public void put(Comparable key, Stroke stroke) { ParamChecks.nullNotPermitted(key, "key"); this.store.put(key, stroke); } }
StrokeMap implements Cloneable, Serializable { public void put(Comparable key, Stroke stroke) { ParamChecks.nullNotPermitted(key, "key"); this.store.put(key, stroke); } StrokeMap(); }
StrokeMap implements Cloneable, Serializable { public void put(Comparable key, Stroke stroke) { ParamChecks.nullNotPermitted(key, "key"); this.store.put(key, stroke); } StrokeMap(); Stroke getStroke(Comparable key); boolean containsKey(Comparable key); void put(Comparable key, Stroke stroke); void clear(); @Override boolean equals(Object obj); @Override Object clone(); }
StrokeMap implements Cloneable, Serializable { public void put(Comparable key, Stroke stroke) { ParamChecks.nullNotPermitted(key, "key"); this.store.put(key, stroke); } StrokeMap(); Stroke getStroke(Comparable key); boolean containsKey(Comparable key); void put(Comparable key, Stroke stroke); void clear(); @Override boolean equals(Object obj); @Override Object clone();  }