| Modifier and Type | Field and Description |
|---|---|
static UriCodec |
INSTANCE
A shared immutable instance.
|
| Constructor and Description |
|---|
UriCodec() |
| Modifier and Type | Method and Description |
|---|---|
UUID |
decode(URI uri)
Get a UUID from a URI.
|
URI |
encode(UUID uuid)
Get a URI from a UUID.
|
static boolean |
isUuidUri(URI uri)
Check if the URI is a UUID URN.
|
public static final UriCodec INSTANCE
public URI encode(UUID uuid)
encode in interface UuidCodec<URI>uuid - a UUIDInvalidUuidException - if the argument is invalidpublic UUID decode(URI uri)
decode in interface UuidCodec<URI>uri - a URIInvalidUuidException - if the argument is invalidpublic static boolean isUuidUri(URI uri)
uri - a URICopyright © 2024. All rights reserved.