Java Code Examples for java.util.HashMap.toString()

The following are Jave code examples for showing how to use toString() of the java.util.HashMap class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: GitHub   File: SearchEngine.java   View Source Code Vote up 6 votes
public String toString() {
	HashMap<String, Object> map = new HashMap<String, Object>();
	map.put("text", text);
	map.put("pinyin", pinyin);
	map.put("firstLatters", firstLatters);
	return map.toString();
}
 
Example 2
Project: GitHub   File: ContactEntry.java   View Source Code Vote up 4 votes
public String toString() {
	HashMap<String, Object> map = new HashMap<String, Object>();
	map.put(key, value);
	return map.toString();
}
 
Example 3
Project: android_viewtracker   File: DemoDataCommitImpl.java   View Source Code Vote up 4 votes
@Override
public void commitClickEvent(HashMap<String, Object> commonInfo, String viewName, HashMap<String, Object> viewData) {
    String extra = viewData == null ? "" : "  extra=" + viewData.toString();
    Log.i(TAG, "commitClickEvent: viewName=" + viewName + extra);
}
 
Example 4
Project: android_viewtracker   File: DemoDataCommitImpl.java   View Source Code Vote up 4 votes
@Override
public void commitExposureEvent(HashMap<String, Object> commonInfo, String viewName, HashMap<String, Object> viewData, long exposureData, HashMap<String, Object> exposureIndex) {
    String extra = viewData == null ? "" : "  extra=" + viewData.toString();
    Log.i(TAG, "commitExposureEvent: viewName=" + viewName + " exposureTime=" + exposureData + extra);
}