|
| static fm.liveswitch.Guid | convertStringToUuid (String uuidString) |
| | Converts a 32-character hexadecimal string to a valid UUID format by inserting hyphens. More...
|
| |
| static boolean | isNullOrWhiteSpace (String s) |
| |
| static boolean | isValidUuid (String input) |
| | Determines whether the input string is a valid UUID (Universally Unique Identifier). More...
|
| |
| static String[] | subArray (String[] array, int offset) |
| | Creates a subarray from an existing array. More...
|
| |
| static String[] | subArray (String[] array, int offset, int count) |
| | Creates a subarray from an existing array. More...
|
| |
Contains methods for string manipulation.
| static boolean fm.liveswitch.StringAssistant.isValidUuid |
( |
String |
input | ) |
|
|
static |
Determines whether the input string is a valid UUID (Universally Unique Identifier).
This method considers various UUID formats as valid, including:
- 32 digits without separators
- 32 digits with hyphens (8-4-4-4-12 format)
- UUIDs enclosed in braces or parentheses
An empty, null, or whitespace-only input is considered invalid.
- Parameters
-
| input | The string to validate as a UUID. |
- Returns
- true if the input is a valid UUID; otherwise, false.