Code example for Map

Methods: containsKey, put

0
        ensureType(typeID);
        return types.get(typeID).includedTypes;
    } 
     
    private void ensureProperty(String propertyID) {
        if (properties.containsKey(propertyID)) {
            return; 
        } 
         
        PropertyInfo info = new PropertyInfo();
        properties.put(propertyID, info);
         
        JSONObject obj = getJson(helperURL + "get_property_data" + propertyID);
        if (obj != null) {
            try { 
                if (!obj.isNull("from")) {
                    info.fromTypeID = obj.getString("from");
                } 
            } catch (JSONException e) {
            } 
            try {