com.urbancode.air.Folder.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of groovy-plugin-utils Show documentation
Show all versions of groovy-plugin-utils Show documentation
A set of utility scripts than can be used in community plugins on JazzHub
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