Package com.castlabs.utils
Class UriUtils
java.lang.Object
com.castlabs.utils.UriUtils
Provides helpers and utilities for
Uri
s.- Since:
- 3.2.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
UriUtils
public UriUtils()
-
-
Method Details
-
getLca
Returns the least common ancestor of th two Uri's. Note that calculations are only done on the path elements of the Uri.- Parameters:
inV
- first UriinW
- second Uri- Returns:
- The least common ancestor
-
parent
Get the parent of the given Uri by walking up the path segments one element.- Parameters:
uri
- The Uri- Returns:
- The parent Uri
-