public int compareTo(Resource o) { if (o instanceof TResource) { TResource res = (TResource) o; return this.getName().compareTo(res.getName()); } else { return -1; } }
public void copyTo(CollectionResource toCollection, String name) { TResource rClone; rClone = (TResource) this.clone((TFolderResource) toCollection); rClone.name = name; }