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

aQute.lib.json.UUIDHandler Maven / Gradle / Ivy

The newest version!
package aQute.lib.json;

import java.io.IOException;
import java.lang.reflect.Type;
import java.util.Map;
import java.util.UUID;

public class UUIDHandler extends Handler {
	@Override
	public void encode(Encoder app, Object object, Map visited) throws IOException, Exception {
		StringHandler.string(app, object.toString());
	}

	@Override
	public Object decode(Decoder dec, String s) throws Exception {
		return UUID.fromString(s);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy