public final class BeanPropertyMap extends Object
SettableBeanProperty
instances.
Note that this class is used instead of generic HashMap
is performance: although default implementation is very good for generic
use cases, it can still be streamlined a bit for specific use case
we have.
Constructor and Description |
---|
BeanPropertyMap(Collection<SettableBeanProperty> properties) |
Modifier and Type | Method and Description |
---|---|
Iterator<SettableBeanProperty> |
allProperties()
Accessor for traversing over all contained properties.
|
void |
assignIndexes() |
SettableBeanProperty |
find(String key) |
void |
remove(SettableBeanProperty property)
Specialized method for removing specified existing entry.
|
void |
replace(SettableBeanProperty property)
Specialized method that can be used to replace an existing entry
(note: entry MUST exist; otherwise exception is thrown) with
specified replacement.
|
int |
size() |
public BeanPropertyMap(Collection<SettableBeanProperty> properties)
public void assignIndexes()
public int size()
public Iterator<SettableBeanProperty> allProperties()
public SettableBeanProperty find(String key)
public void replace(SettableBeanProperty property)
public void remove(SettableBeanProperty property)