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