Code example for TreeMap

Methods: keySet

0
    public void addApplication(int appId, String appName) {
        this.applications.put(appName, "" + appId);
    } 
     
    public Iterator applicationsIterator() {
        return this.applications.keySet().iterator();
    } 
     
    public String getApplicationId(String appName) {
        return (String)this.applications.get(appName);
    } 
         
    public int getNodeId() { 
        return this.nodeId;
    } 
 
    public void setNodeId(int nodeId) {
        this.nodeId = nodeId;
    } 
 
    public String getNodeName() {