public final class SuggestedValuesBuilder extends Object
SuggestedValues
.Constructor and Description |
---|
SuggestedValuesBuilder() |
Modifier and Type | Method and Description |
---|---|
SuggestedValuesBuilder |
addValues(Collection<?> obj)
Adds each object in the collection as a value for SuggestedValues instance that is being built.
|
SuggestedValuesBuilder |
addValues(Object... objs)
Add each of the specified objects as a value for SuggestedValues instance that is being built.
|
SuggestedValues |
build() |
static SuggestedValues |
build(Collection<?> collection)
Creates closed suggested values with the specified values from a collection.
|
static SuggestedValues |
build(Object... values)
Creates closed suggested values with the specified values.
|
static SuggestedValues |
buildOpen(Object... values)
Creates open suggested values with the specified values.
|
ValueListOpenness |
getOpenness()
Returns openness of value list.
|
List<Object> |
getValues()
Return current values of the SuggestedValues instance that is being built.
|
void |
setOpenness(ValueListOpenness openness)
Sets openness of value list.
|
public static SuggestedValues build(Object... values)
values
- variable number of arguments that are used as values for the
attribute.SuggestedValues
with the specified values
that includes the arguments provided.public static SuggestedValues buildOpen(Object... values)
values
- variable number of arguments that are used as values for the
attribute.SuggestedValues
with the specified values
that includes the arguments provided.public static SuggestedValues build(Collection<?> collection)
collection
- a collection of objects that are used as suggested values.SuggestedValues
with values
from the provided collection.public List<Object> getValues()
public SuggestedValuesBuilder addValues(Object... objs)
objs
- the values to addNullPointerException
- if any of the values is null.public SuggestedValuesBuilder addValues(Collection<?> obj)
obj
- the values to addNullPointerException
- if any of the values is null.public SuggestedValues build()
public ValueListOpenness getOpenness()
ValueListOpenness
public void setOpenness(ValueListOpenness openness)
ValueListOpenness
Copyright © 2022. All rights reserved.