| Constructor and Description |
|---|
CharactersConverter()
Package default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
asObject(String string,
Class<T> valueType)
Return the first character from given string.
|
String |
asString(Object object)
Return a single character string.
|
public <T> T asObject(String string, Class<T> valueType) throws BugError
asObject in interface ConverterT - instance type.string - instance string representation, possible null or empty,valueType - expected value type, null not accepted.string argument is null.ConverterException - if given string has more than one single character.BugErrorCopyright © 2018. All rights reserved.