package interdroid.swan.swansong; /** * An interface marking an object as convertible to and from a string form. * * Implementing classes must ensure that all object state is persisted in * the string version of the object. * * Implementing classes must also include a static method: * * public E parse(String parseable); * * @author nick <palmer@cs.vu.nl> * * @param <E> the type implementing the interface */ public interface Parseable<E> { /** * The return value of this must reconstruct the object * when passed to parse(String). * @return the parseable string form of the object. */ String toParseString(); }