All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.urbancode.air.Folder.groovy Maven / Gradle / Ivy

The newest version!
package com.urbancode.air

class Folder {
    def id
    def name
    def parentId
    def Map children = new HashMap()
    
    public Folder(id, name, parentId) {
        this.id = id
        this.name = name
        this.parentId = parentId
    }

    public boolean equals(Object o) {
        if (o instanceof Folder && o != null) {
            return id.equals(o.id)
        }
        else {
            return false
        }
    }

    public String toString() {
        return "[id:$id, name:$name, parent:$parentId, children:${children.keySet()}]"
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy