ewe.data
Interface DataUnit

All Superinterfaces:
Comparable, Copyable
All Known Subinterfaces:
EditableData, LiveData
All Known Implementing Classes:
DataObject, EditableObject, LiveObject

public interface DataUnit
extends Copyable, Comparable

A DataUnit encompasses a set of standard methods which are useful for small units of data. It extends Copyable and Comparable and in total provides the following methods:

 Object getNew();
 Object getCopy();
 void copyFrom(Object other);
 int compareTo(Object other);
 


Method Summary
 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.
 
Methods inherited from interface ewe.util.Copyable
getCopy
 
Methods inherited from interface ewe.util.Comparable
compareTo
 

Method Detail

getNew

public Object getNew()
Return a new Object which is of the same class as the original.


copyFrom

public void copyFrom(Object other)
Copy all appropriate data from another object.