Class ResourceStringUtils
java.lang.Object
org.springframework.data.rest.core.support.ResourceStringUtils
Helper methods aiming at handling String representations of resources.
- Author:
- Florent Biville
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasTextExceptSlash
(CharSequence input) Checks whether the given input contains actual text (slash excluded).static String
removeLeadingSlash
(String path) Returns a string without the leading slash, if any.
-
Constructor Details
-
ResourceStringUtils
public ResourceStringUtils()
-
-
Method Details
-
hasTextExceptSlash
Checks whether the given input contains actual text (slash excluded). This is a specializing variant of)
#hasText.- Parameters:
input
-
-
removeLeadingSlash
Returns a string without the leading slash, if any.- Parameters:
path
-
-