public class UUIDConverter extends AbstractBaseConverter<UUID>
String into a UUID.
For a description of the format, see UUID.fromString(String).
Example:
@Parameter(names = { "--uUID" }, converter = UUIDConverter.class)
private UUID uuid;
UUID,
UUID.fromString(String)failOnNull, targetClass| Constructor and Description |
|---|
UUIDConverter(String optionName)
Constructs a converter.
|
| Modifier and Type | Method and Description |
|---|---|
protected UUID |
convertImpl(String value)
Converts a value.
|
convert, getErrorString, isSingle, newParameterException, newParameterException, split, toInt, toURIpublic UUIDConverter(String optionName)
optionName - The option name, may be null.protected UUID convertImpl(String value)
AbstractBaseConverterconvertImpl in class AbstractBaseConverter<UUID>value - the value to convertCopyright © 2016-2016 Gary Gregory. All Rights Reserved.
Use is subject to The Apache Software License, Version 2.0