public class LocaleDelegate extends Object implements RuntimeDelegate.HeaderDelegate<Locale>
Constructor and Description |
---|
LocaleDelegate() |
Modifier and Type | Method and Description |
---|---|
Locale |
fromString(String value)
Parse the supplied value and create an instance of
T . |
String |
toString(Locale value)
Convert the supplied value to a String.
|
public Locale fromString(String value) throws IllegalArgumentException
RuntimeDelegate.HeaderDelegate
T
.fromString
in interface RuntimeDelegate.HeaderDelegate<Locale>
value
- the string value.T
.IllegalArgumentException
- if the supplied string cannot be
parsed or is null
.public String toString(Locale value)
RuntimeDelegate.HeaderDelegate
toString
in interface RuntimeDelegate.HeaderDelegate<Locale>
value
- the value of type T
.Copyright © 2019 JBoss by Red Hat. All rights reserved.