Package net.fortuna.ical4j.model
Class PropertyList
- java.lang.Object
-
- net.fortuna.ical4j.model.PropertyList
-
- All Implemented Interfaces:
Serializable
,ContentCollection<Property>
public class PropertyList extends Object implements ContentCollection<Property>
$Id$ [Apr 5, 2004] Accessor implementation for a list of iCalendar properties.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PropertyList()
Default constructor.PropertyList(List<Property> properties)
Creates an unmodifiable copy of the specified property list.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ContentCollection<Property>
add(Property content)
ContentCollection<Property>
addAll(Collection<Property> content)
boolean
equals(Object o)
List<Property>
getAll()
List<Property>
getProperties(String name)
Deprecated.<T extends Property>
Optional<T>getProperty(String aName)
Deprecated.int
hashCode()
ContentCollection<Property>
remove(Property content)
ContentCollection<Property>
removeAll(String... name)
ContentCollection<Property>
replace(Property content)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.fortuna.ical4j.model.ContentCollection
get, getFirst, getRequired
-
-
-
-
Method Detail
-
add
public ContentCollection<Property> add(Property content)
- Specified by:
add
in interfaceContentCollection<Property>
-
addAll
public ContentCollection<Property> addAll(Collection<Property> content)
- Specified by:
addAll
in interfaceContentCollection<Property>
-
remove
public ContentCollection<Property> remove(Property content)
- Specified by:
remove
in interfaceContentCollection<Property>
-
removeAll
public ContentCollection<Property> removeAll(String... name)
- Specified by:
removeAll
in interfaceContentCollection<Property>
-
replace
public ContentCollection<Property> replace(Property content)
- Specified by:
replace
in interfaceContentCollection<Property>
-
getAll
public List<Property> getAll()
- Specified by:
getAll
in interfaceContentCollection<Property>
-
getProperty
@Deprecated public final <T extends Property> Optional<T> getProperty(String aName)
Deprecated.Returns the first property of specified name.- Parameters:
aName
- name of property to return- Returns:
- a property or null if no matching property found
-
getProperties
@Deprecated public final List<Property> getProperties(String name)
Deprecated.Returns a list of properties with the specified name.- Parameters:
name
- name of properties to return- Returns:
- a property list
-
-