@Test(expected = IllegalArgumentException.class) public void testPutWithNullValue() { BoundingBoxMap map = new BoundingBoxMap(); map.put(10, null); }
@Override public List<BoundingBox> put(Integer key, List<BoundingBox> value) { if (key == null) { throw new IllegalArgumentException("key must not be null"); } if (key < 0) { throw new IllegalArgumentException("key must not be less than 0"); } if (value == null) { throw new IllegalArgumentException("value must not be null"); } if (value.contains(null)) { throw new IllegalArgumentException("value must not contain null elements"); } return super.put(key, value); }
BoundingBoxMap extends TreeMap<Integer, List<BoundingBox>> { @Override public List<BoundingBox> put(Integer key, List<BoundingBox> value) { if (key == null) { throw new IllegalArgumentException("key must not be null"); } if (key < 0) { throw new IllegalArgumentException("key must not be less than 0"); } if (value == null) { throw new IllegalArgumentException("value must not be null"); } if (value.contains(null)) { throw new IllegalArgumentException("value must not contain null elements"); } return super.put(key, value); } }
BoundingBoxMap extends TreeMap<Integer, List<BoundingBox>> { @Override public List<BoundingBox> put(Integer key, List<BoundingBox> value) { if (key == null) { throw new IllegalArgumentException("key must not be null"); } if (key < 0) { throw new IllegalArgumentException("key must not be less than 0"); } if (value == null) { throw new IllegalArgumentException("value must not be null"); } if (value.contains(null)) { throw new IllegalArgumentException("value must not contain null elements"); } return super.put(key, value); }  }
BoundingBoxMap extends TreeMap<Integer, List<BoundingBox>> { @Override public List<BoundingBox> put(Integer key, List<BoundingBox> value) { if (key == null) { throw new IllegalArgumentException("key must not be null"); } if (key < 0) { throw new IllegalArgumentException("key must not be less than 0"); } if (value == null) { throw new IllegalArgumentException("value must not be null"); } if (value.contains(null)) { throw new IllegalArgumentException("value must not contain null elements"); } return super.put(key, value); }  @Override List<BoundingBox> put(Integer key, List<BoundingBox> value); @Override void putAll(Map<? extends Integer, ? extends List<BoundingBox>> m); void putOnFrame(Integer frame, BoundingBox boundingBox); void putOnFrames(Integer firstFrame, Integer lastFrame, BoundingBox boundingBox); void animate(BoundingBox origin, BoundingBox destination, int firstFrame, int interval); @Override String toString(); List<Markup.BoundingBoxMapEntry> toBoundingBoxMapEntryList(); int getEntryCount(); }
BoundingBoxMap extends TreeMap<Integer, List<BoundingBox>> { @Override public List<BoundingBox> put(Integer key, List<BoundingBox> value) { if (key == null) { throw new IllegalArgumentException("key must not be null"); } if (key < 0) { throw new IllegalArgumentException("key must not be less than 0"); } if (value == null) { throw new IllegalArgumentException("value must not be null"); } if (value.contains(null)) { throw new IllegalArgumentException("value must not contain null elements"); } return super.put(key, value); }  @Override List<BoundingBox> put(Integer key, List<BoundingBox> value); @Override void putAll(Map<? extends Integer, ? extends List<BoundingBox>> m); void putOnFrame(Integer frame, BoundingBox boundingBox); void putOnFrames(Integer firstFrame, Integer lastFrame, BoundingBox boundingBox); void animate(BoundingBox origin, BoundingBox destination, int firstFrame, int interval); @Override String toString(); List<Markup.BoundingBoxMapEntry> toBoundingBoxMapEntryList(); int getEntryCount(); static final int ALL_FRAMES; }