Code example for List

Methods: addAll

0
     *  
     * @param collection 
     *            the collection of entities (<code>null</code> not permitted). 
     */ 
    public void addAll(EntityCollection collection) {
        this.entities.addAll(collection.getEntities());
    } 
 
    /** 
     * Returns the last entity in the list with an area that encloses the 
     * specified coordinates, or <code>null</code> if there is no such entity. 
     *  
     * @param x 
     *            the x coordinate. 
     * @param y 
     *            the y coordinate. 
     *  
     * @return The entity (possibly <code>null</code>). 
     */ 
    public ChartEntity getEntity(double x, double y) {
        int entityCount = this.entities.size();