TextUtils
Path
com.roma.apic.livedata.common.v1.TextUtils
Description
This class is used to provide the formatting function.
Method List
| Returned Type | Method and Description |
|---|---|
| static Map<String,String> | encodeByUrlEncoder(Map<String,String> map) Encode the key and value in the map. |
| static boolean | parseBoolean(String value, boolean defaultValue) Convert a character string into a Boolean type. |
| static String | toHttpParameters(Map<String,String> map) Convert the map content to parameters in HTTP URL. |
Method Details
- public static Map<String,String> encodeByUrlEncoder(Map<String,String> map)
Encode the key and value in the map.
Input Parameter
map indicates the map containing URL parameters.
Returns
Map after the URL encoding.
- public static boolean parseBoolean(String value, boolean defaultValue)
Convert a character string into a Boolean type.
Input Parameter
- value indicates the character content to be converted.
- defaultValue indicates the default Boolean value. It is used when value is invalid.
Returns
Boolean value.
- public static String toHttpParameters(Map<String,String> map)
Convert the content in the map to the parameters in the HTTP URL.
Input Parameter
map indicates the map containing URL parameters.
Returns
Parameters in the HTTP URL.
Last Article: StringUtils
Next Article: XmlUtils
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.