| Access | Constructor and Description |
|---|---|
| public | IndexedComponentList(final List<T>
a list of components list, final String the name of the properties to index on propertyName)Creates a new instance indexed on properties with the specified name. |
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: a component or null if no component is found containing a property with the specified valuethe value of the property identified in the returned
component propertyValue)Returns the first component containing a property with the specified value. |
| public List | Returns: a component listthe value of the property contained in the
returned components propertyValue)Returns a list of components containing a property with the specified value. |
| index | back to summary |
|---|---|
| private final Map<String, List<T>> index | |
| IndexedComponentList | back to summary |
|---|---|
| public IndexedComponentList(final List<T> list, final String propertyName) Creates a new instance indexed on properties with the specified name. | |
| getComponent | back to summary |
|---|---|
| public T getComponent(final String propertyValue) Returns the first component containing a property with the specified value.
| |
| getComponents | back to summary |
|---|---|
| public List Returns a list of components containing a property with the specified value. | |