Class BeanPropertyMap
- java.lang.Object
-
- org.codehaus.jackson.map.deser.impl.BeanPropertyMap
-
public final class BeanPropertyMap extends java.lang.ObjectHelper class used for storing mapping from property name toSettableBeanPropertyinstances.Note that this class is used instead of generic
HashMapis performance: although default implementation is very good for generic use cases, it can still be streamlined a bit for specific use case we have.- Since:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description BeanPropertyMap(java.util.Collection<SettableBeanProperty> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<SettableBeanProperty>allProperties()Accessor for traversing over all contained properties.voidassignIndexes()SettableBeanPropertyfind(java.lang.String key)voidremove(SettableBeanProperty property)Specialized method for removing specified existing entry.voidreplace(SettableBeanProperty property)Specialized method that can be used to replace an existing entry (note: entry MUST exist; otherwise exception is thrown) with specified replacement.intsize()
-
-
-
Constructor Detail
-
BeanPropertyMap
public BeanPropertyMap(java.util.Collection<SettableBeanProperty> properties)
-
-
Method Detail
-
assignIndexes
public void assignIndexes()
-
size
public int size()
-
allProperties
public java.util.Iterator<SettableBeanProperty> allProperties()
Accessor for traversing over all contained properties.
-
find
public SettableBeanProperty find(java.lang.String key)
-
replace
public 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.
-
remove
public void remove(SettableBeanProperty property)
Specialized method for removing specified existing entry. NOTE: entry MUST exist, otherwise an exception is thrown.- Since:
- 1.9
-
-