Here you can find the source of toHashMapStrObj(Object object)
Parameter | Description |
---|---|
object | a parameter |
@SuppressWarnings("unchecked") public static HashMap<String, Object> toHashMapStrObj(Object object)
//package com.java2s; //License from project: Open Source License import java.util.HashMap; public class Main { /**//from w w w. jav a 2s.c o m * replacement of casting as from Object to * <tt>HashMap<String, Object></tt> without annoying warning. * * @param object * @return object it self which is casted as return type. */ @SuppressWarnings("unchecked") public static HashMap<String, Object> toHashMapStrObj(Object object) { if (object == null) { return null; } return (HashMap<String, Object>) object; } }