Item
- the type of attribute in the listpublic static class ListAttribute.Builder<Item extends BaseAttribute> extends BaseAttribute.Builder<ListAttribute<Item>,ListAttribute.Builder<Item>>
Constructor and Description |
---|
ListAttribute.Builder(Class<? extends BaseAttribute> itemClass)
Constructs an empty builder.
|
Modifier and Type | Method and Description |
---|---|
ListAttribute.Builder<Item> |
add(Item item)
Adds one item to the list.
|
ListAttribute<Item> |
build()
Constructs an immutable list from the current state of the builder.
|
ListAttribute.Builder<Item> |
setItems(List<Item> items)
Specifies the complete list of items.
|
extendedProperties, extendedProperty
public ListAttribute.Builder(Class<? extends BaseAttribute> itemClass)
itemClass
- the class for the items to be stored in the listpublic ListAttribute.Builder<Item> add(Item item)
item
- the item to addpublic ListAttribute.Builder<Item> setItems(List<Item> items)
items
- all the itemspublic ListAttribute<Item> build()
Copyright © 2016 Basis Technology Corporation. All Rights Reserved.