Constructor and Description |
---|
Label.Util() |
Modifier and Type | Method and Description |
---|---|
static <T extends Enum<T>> |
ofName(Class<T> enumType,
String name)
Retrieves a Label enum given the specified enum type and name.
|
static void |
print(Label... labels)
Prints the labels.
|
static String |
toSwitchYardLabel(String labelType,
String name)
Builds a label String given the specified label type and name.
|
static String |
trimToNull(String str)
Trims the specified String, and if after it is zero-length, return null.
|
public static final String toSwitchYardLabel(String labelType, String name)
labelType
- the typename
- the namepublic static final <T extends Enum<T>> T ofName(Class<T> enumType, String name)
T
- the enum class typeenumType
- the enum typename
- the namepublic static String trimToNull(String str)
str
- the specified Stringpublic static final void print(Label... labels)
labels
- the labelsCopyright © 2013–2020 JBoss by Red Hat. All rights reserved.