T
- the type of values sorted in the listpublic class ListProperty<T> extends VCardProperty
Modifier and Type | Field and Description |
---|---|
protected List<T> |
values |
group, parameters
Constructor and Description |
---|
ListProperty() |
Modifier and Type | Method and Description |
---|---|
protected void |
_validate(List<Warning> warnings,
VCardVersion version,
VCard vcard)
Checks the property for data consistency problems or deviations from the
spec.
|
void |
addValue(T value)
Adds a value to the list.
|
List<T> |
getValues()
Gest the list of values.
|
void |
removeValue(T value)
Removes a value from the list.
|
_supportedVersions, addParameter, compareTo, getGroup, getParameter, getParameters, getParameters, getSupportedVersions, removeParameter, setGroup, setParameter, setParameters, validate
public void addValue(T value)
value
- the value to addpublic void removeValue(T value)
value
- the value to removeprotected void _validate(List<Warning> warnings, VCardVersion version, VCard vcard)
VCardProperty
_validate
in class VCardProperty
warnings
- the list to add the warnings toversion
- the version to check the property againstvcard
- the vCard this property belongs toThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.