T - this class to chain method callspublic class FluentLabelImpl<T> extends Object implements FluentLabel<T>, FluentLabelProvider
| Constructor and Description |
|---|
FluentLabelImpl(T reference,
com.google.common.base.Supplier<String> defaultLabelSupplier)
Creates a new fluent label.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLabel()
Get the defined label.
|
String[] |
getLabelHints()
Get the defined label hints.
|
String |
toString() |
T |
withLabel(String label)
Apply a label that will be displayed as the representation of this object for error message.
|
T |
withLabelHint(String... labelHint)
Add a label hint that will be appended to the representation of this object for error message.
|
public T withLabel(String label)
FluentLabelwithLabel in interface FluentLabel<T>label - label to usepublic String getLabel()
getLabel in interface FluentLabelProviderpublic T withLabelHint(String... labelHint)
FluentLabelwithLabelHint in interface FluentLabel<T>labelHint - label hints to addpublic String[] getLabelHints()
getLabelHints in interface FluentLabelProviderCopyright © 2016 FluentLenium. All Rights Reserved.