public class InventoryData extends WidgetData
Modifier and Type | Class and Description |
---|---|
static class |
InventoryData.Builder
Builder to make widget data construction easier.
|
Constructor and Description |
---|
InventoryData()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(String name,
String value)
Adds the given filter to the list of filters for the widget.
|
void |
addSource(String source)
Adds the given source to the list of sources for the widget.
|
static InventoryData.Builder |
builder()
Returns a builder for the widget data.
|
Map<String,String> |
getFilters()
Returns the list of filters for the widget.
|
List<String> |
getSources()
Returns the list of sources for the widget.
|
void |
setFilters(Map<String,String> filters)
Sets the list of filters for the widget.
|
void |
setSources(List<String> sources)
Sets the list of sources for the widget.
|
String |
toString()
Returns a string representation of the object.
|
public void setSources(List<String> sources)
sources
- The list of sources for the widgetpublic void addSource(String source)
source
- The source to add to the list of sourcespublic List<String> getSources()
public void setFilters(Map<String,String> filters)
filters
- The list of filters for the widgetpublic void addFilter(String name, String value)
name
- The name of the filter to addvalue
- The value of the filter to addpublic Map<String,String> getFilters()
public String toString()
public static InventoryData.Builder builder()
Copyright © 2018. All rights reserved.