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

de.rpgframework.genericrpg.persist.UUIDConverter Maven / Gradle / Ivy

package de.rpgframework.genericrpg.persist;

import java.util.UUID;

import org.prelle.simplepersist.StringValueConverter;

/**
 * @author prelle
 *
 */
public class UUIDConverter implements StringValueConverter {

	@Override
	public String write(UUID value) throws Exception {
		return String.valueOf(value);
	}

	@Override
	public UUID read(String v) throws Exception {
		return UUID.fromString(v);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy