public static class FieldValue.Builder<T> extends java.lang.Object implements Builder<FieldValue<T>>
FieldValue.Builder.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
FieldValue<T> |
build()
Constructs an instance of
T with the
current state of the builder. |
void |
clear()
Clears the state of the builder.
|
FieldValue.Builder<T> |
selected(java.lang.Boolean selected)
Adds the provided flag indicating whether to be selected to the current state of the builder.
|
FieldValue.Builder<T> |
title(java.lang.String title)
Adds the title provided to the current state of the builder.
|
FieldValue.Builder<T> |
value(T value)
Adds the value provided to the current state of the builder.
|
public FieldValue.Builder<T> value(T value)
value - Possible value for the field.public FieldValue.Builder<T> title(java.lang.String title)
title - Textual description of a field value.public FieldValue.Builder<T> selected(java.lang.Boolean selected)
selected - Indicates whether this field value should be considered preselected by the client.public void clear()
clear in interface Builder<FieldValue<T>>public FieldValue<T> build()
T with the
current state of the builder.build in interface Builder<FieldValue<T>>T with the current state of the builder.Copyright © 2017. All Rights Reserved.