Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.HashMap; import java.util.Map; public class Main { @SuppressWarnings({ "rawtypes", "unchecked" }) public static Map extractHitPointFromRect(Map rect) { Map hitPoint = new HashMap(); hitPoint.put("x", rect.get("center_x")); hitPoint.put("y", rect.get("center_y")); return hitPoint; } }