T - the value typepublic class ListProperty<T> extends ICalProperty
| Modifier and Type | Field and Description |
|---|---|
protected List<T> |
values |
parameters| Constructor and Description |
|---|
ListProperty()
Creates a new list property.
|
ListProperty(List<T> values)
Creates a new list property.
|
ListProperty(ListProperty<T> original)
Copy constructor.
|
ListProperty(T... values)
Creates a new list property.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<T> |
getValues()
Gets the list that holds the values of this property.
|
int |
hashCode() |
protected Map<String,Object> |
toStringValues()
Gets string representations of the class's fields for the
ICalProperty.toString() method. |
protected void |
validate(List<ICalComponent> components,
ICalVersion version,
List<Warning> warnings)
Checks the property for data consistency problems or deviations from the
specifications.
|
addParameter, copy, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, toString, 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 with (cannot be null)public ListProperty(ListProperty<T> original)
original - the property to make a copy ofpublic List<T> getValues()
protected void validate(List<ICalComponent> components, ICalVersion version, List<Warning> warnings)
ICalPropertyChecks the property for data consistency problems or deviations from the specifications.
This method should be overridden by child classes that wish to provide validation logic. The default implementation of this method does nothing.
validate in class ICalPropertycomponents - the hierarchy of components that the property belongs
toversion - the version to validate againstwarnings - the list to add the warnings toprotected Map<String,Object> toStringValues()
ICalProperty
Gets string representations of the class's fields for the
ICalProperty.toString() method.
Meant to be overridden by child classes. The default implementation returns an empty map.
toStringValues in class ICalPropertypublic int hashCode()
hashCode in class ICalPropertypublic boolean equals(Object obj)
equals in class ICalPropertyCopyright © 2013-2016 Michael Angstadt. All Rights Reserved.