All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.rpgframework.StringConverter Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
/**
 * 
 */
package de.rpgframework;

/**
 * @author prelle
 *
 */
public abstract class StringConverter {
	/**
	 * Converts the object provided into its string form.
	 * Format of the returned string is defined by the specific converter.
	 * @return a string representation of the object passed in.
	 */
	public abstract String toString(T object);

	/**
	 * Converts the string provided into an object defined by the specific converter.
	 * Format of the string and type of the resulting object is defined by the specific converter.
	 * @return an object representation of the string passed in.
	 */
	public abstract T fromString(String string);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy