Constructor and Description |
---|
IndexedComponentList(List<T> list,
String propertyName)
Creates a new instance indexed on properties with the specified name.
|
Modifier and Type | Method and 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.
|
public List<T> getComponents(String propertyValue)
propertyValue
- the value of the property contained in the
returned componentspublic T getComponent(String propertyValue)
propertyValue
- the value of the property identified in the returned
component