T - the value typepublic class ListProperty<T> extends ICalProperty
parameters| Constructor and Description |
|---|
ListProperty()
Creates a new list property.
|
ListProperty(List<T> values)
Creates a new list property.
|
ListProperty(T... values)
Creates a new list property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(T value)
Adds a value to this property.
|
List<T> |
getValues()
Gets the values of this property.
|
protected void |
validate(List<ICalComponent> components,
List<Warning> warnings)
Checks the property for data consistency problems or deviations from the
spec.
|
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validatepublic ListProperty()
public ListProperty(T... values)
values - the values to initialize the property withpublic ListProperty(List<T> values)
values - the values to initialize the property withpublic void addValue(T value)
value - the value to addprotected void validate(List<ICalComponent> components, List<Warning> warnings)
ICalPropertyvalidate in class ICalPropertycomponents - the hierarchy of components that the property belongs
towarnings - the list to add the warnings toCopyright © 2013-2014 Michael Angstadt. All Rights Reserved.