Package net.fortuna.ical4j.model
Class IndexedComponentList<T extends Component>
- java.lang.Object
-
- net.fortuna.ical4j.model.IndexedComponentList<T>
-
-
Constructor Summary
Constructors Constructor Description IndexedComponentList(List<T> list, String propertyName)
Creates a new instance indexed on properties with the specified name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getComponent(String propertyValue)
Returns the first component containing a property with the specified value.List<T>
getComponents(String propertyValue)
Returns a list of components containing a property with the specified value.
-
-
-
Method Detail
-
getComponents
public List<T> getComponents(String propertyValue)
Returns a list of components containing a property with the specified value.- Parameters:
propertyValue
- the value of the property contained in the returned components- Returns:
- a component list
-
getComponent
public T getComponent(String propertyValue)
Returns the first component containing a property with the specified value.- Parameters:
propertyValue
- the value of the property identified in the returned component- Returns:
- a component or null if no component is found containing a property with the specified value
-
-