Class UUID64
java.lang.Object
de.s42.base.uuid.UUID64
UUID58 provides uuid base64 string encoding and decoding for UUIDs to shorten, improve readability and cinvalid input: '&p' support in
string form.
uuid64 strings look like: , ...
- Author:
- Benjamin Schiller
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UUID64
private UUID64()
-
-
Method Details
-
fromString
public static UUID fromString(String uuid64) throws IndexOutOfBoundsException, IllegalArgumentException, NullPointerException Converts a uuid base64 string into a UUID.- Parameters:
uuid64- A valid uuid base64 string- Returns:
- Restored UUID from base64 string
- Throws:
IllegalArgumentException- If the string is too longIndexOutOfBoundsException- If a character is contained which is not part of the SymbolsNullPointerException- If the parameter uuid58 is null
-
toString
Converts a UUID into a uuid base58 string.- Parameters:
uuid- The UUID to be converted- Returns:
- The uuid base64 string using
- Throws:
NullPointerException- If the parameter uuid58 is null
-