Back to project page AndroidMessenger.
The source code is released under:
GNU General Public License
If you think the Android project AndroidMessenger listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * @author - Zachary Goldberg @ 2008//w w w . ja va 2 s. c o m */ package com.penn.cis121.androidmessenger; import java.util.HashMap; import com.penn.cis121.androidmessenger.protocols.*; public class AMProtocolMapper { public static HashMap<Class<? extends Object>,String> names = new HashMap<Class<? extends Object>,String>(); public static void addMapping(Class<? extends Object> c, String connectionTypeName){ names.put(c,connectionTypeName); } public static String getName(Class<? extends Object> c){ return names.get(c); } public static HashMap<Class<? extends Object>, String> getAll(){ return names; } }