com.zipwhip.signals.util.EncoderUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zipwhip-api Show documentation
Show all versions of zipwhip-api Show documentation
Java client to support applications powered by the Zipwhip Cloud
The newest version!
package com.zipwhip.signals.util;
import java.util.HashMap;
import java.util.Map;
/**
* Created by IntelliJ IDEA.
* User: Parker
* Date: Dec 13, 2010
* Time: 8:38:10 PM
*
* A utility class that provides the encoding json wrapping.
*
*/
public class EncoderUtil {
private static final String CLASS = "class";
public static Map serialize(Object object) {
return serialize(object.getClass());
}
public static Map serialize(Class object)
{
Map map = new HashMap();
map.put(CLASS, object.getSimpleName());
return map;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy