Code example for TreeMap

Methods: isEmpty

0
    /** 
     * Tests if the Catalog is empty 
     * @return True if there no was any element, else False 
     */ 
    public Boolean isEmpty() {
        return table.isEmpty();
    } 
     
     
    /** 
     * Tests if an object is in the Calalog 
     * @params o Element to find 
     * @return True if it was found, else False 
     */ 
    public Boolean hasObject(X o) {
        return table.containsKey(o.getId());
    } 
     
    
    /** 
     * Tests if an object is in the Calalog