public interface DataUnit extends Copyable, Comparable
Object getNew(); Object getCopy(); void copyFrom(Object other); int compareTo(Object other);
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(Object other)
Copy all appropriate data from another object.
|
Object |
getNew()
Return a new Object which is of the same class as the original.
|
compareTo