Constructor and Description |
---|
StringToUUID() |
Modifier and Type | Method and Description |
---|---|
@NotNull UUID |
apply(@NotNull String object)
Converts a string to its UUID representation via
UUID.fromString(String) . |
@NotNull public @NotNull UUID apply(@NotNull @NotNull String object) throws ConversionException, IllegalArgumentException
UUID.fromString(String)
.apply
in interface Converter<String,UUID>
apply
in interface Function<String,UUID>
object
- the string object to convert to UUIDConversionException
- if something went wrong while trying to perform the convertionIllegalArgumentException
- if the parameter does not conform to the string representation as described in toStringUUID.fromString(String)
Copyright © 2021. All rights reserved.