Package com.github.katenachain.utils
Class Common
- java.lang.Object
-
- com.github.katenachain.utils.Common
-
public class Common extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PER_PAGE_PARAM
-
Constructor Summary
Constructors Constructor Description Common()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringconcatFqId(String companyBcId, String uuid)concatenates a company bcid and a uuid into a fully qualified id.static HashMap<String,String>getPaginationQueryParams(int page, int perPage)returns the query params array to request a pagination.static okhttp3.HttpUrlgetUri(String basePath, String[] paths, HashMap<String,String> queryValues)joins the base path and paths array and adds the query values to return a new uri.
-
-
-
Field Detail
-
DEFAULT_PER_PAGE_PARAM
public static final int DEFAULT_PER_PAGE_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUri
public static okhttp3.HttpUrl getUri(String basePath, String[] paths, HashMap<String,String> queryValues)
joins the base path and paths array and adds the query values to return a new uri.- Parameters:
basePath-paths-queryValues-- Returns:
-
concatFqId
public static String concatFqId(String companyBcId, String uuid)
concatenates a company bcid and a uuid into a fully qualified id.- Parameters:
companyBcId-uuid-- Returns:
-
-