Back to project page interdroid-swan.
The source code is released under:
Copyright (c) 2008-2011 Vrije Universiteit, The Netherlands All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follo...
If you think the Android project interdroid-swan listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package interdroid.swan.swansong; //from ww w . j a va2 s. c om /** * 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(); }