package org.simpleflatmapper.converter.impl; import org.simpleflatmapper.converter.Converter; import java.util.UUID; public class CharSequenceUUIDConverter implements Converter<CharSequence, UUID> { @Override public UUID convert(CharSequence in) throws Exception { if (in == null) return null; return UUID.fromString(in.toString()); } public String toString() { return "CharSequenceToUUID"; } }