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

com.zipwhip.signals.util.EncoderUtil Maven / Gradle / Ivy

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