Class ResourceHelper
java.lang.Object
com.amilesend.onedrive.resource.ResourceHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringescapeValueForUrlPath(String value) Helper method to leverage guava'sUrlEscapersto escape values used for URL path elements.static booleanobjectDefinedEquals(Object thisObj, Object thatObj) Used forequals()implementation to determine if a given object is mutually defined or not.static voidvalidateFilename(String filename) Helper to validate filenames for specific characters.
-
Method Details
-
objectDefinedEquals
Used forequals()implementation to determine if a given object is mutually defined or not.- Parameters:
thisObj- the base object to compare tothatObj- the object to compare with- Returns:
trueif both objects are defined (notnull); else,false
-
escapeValueForUrlPath
-
validateFilename
Helper to validate filenames for specific characters.- Parameters:
filename-
-