/** * This will handle the strings like options. Means a string without separator will handled * as key and set to true. e.g. [val1, val2, a=b] will be val1=true, val2=true, a=b * * @param properties * @return The MProperties */ public static MProperties explodeToOptions(String[] properties) { return explodeToOptions(properties, '='); }
/** * This will handle the strings like options. Means a string without separator will handled * as key and set to true. e.g. val1&val2&a=b will be val1=true, val2=true, a=b * * @param properties Rfc1738 (Url Encode) encoded string * @return The MProperties */ public static MProperties explodeToOptions(String properties) { return explodeToOptions(MUri.explodeArray(properties), '='); }