|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap
public final class BeanPropertyMap
Helper class used for storing mapping from property name to
SettableBeanProperty
instances.
Note that this class is used instead of generic HashMap
for bit of performance gain (and some memory savings): although default
implementation is very good for generic use cases, it can be streamlined
a bit for specific use case we have. Even relatively small improvements
matter since this is directly on the critical path during deserialization,
as it is done for each and every POJO property deserialized.
Constructor Summary | |
---|---|
BeanPropertyMap(Collection<SettableBeanProperty> properties)
|
Method Summary | |
---|---|
BeanPropertyMap |
assignIndexes()
|
SettableBeanProperty |
find(String key)
|
Iterator<SettableBeanProperty> |
iterator()
Accessor for traversing over all contained properties. |
void |
remove(SettableBeanProperty property)
Specialized method for removing specified existing entry. |
BeanPropertyMap |
renameAll(NameTransformer transformer)
Factory method for constructing a map where all entries use given prefix |
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()
|
BeanPropertyMap |
withProperty(SettableBeanProperty newProperty)
Fluent copy method that creates a new instance that is a copy of this instance except for one additional property that is passed as the argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanPropertyMap(Collection<SettableBeanProperty> properties)
Method Detail |
---|
public BeanPropertyMap withProperty(SettableBeanProperty newProperty)
public BeanPropertyMap renameAll(NameTransformer transformer)
public BeanPropertyMap assignIndexes()
public Iterator<SettableBeanProperty> iterator()
iterator
in interface Iterable<SettableBeanProperty>
public int size()
public SettableBeanProperty find(String key)
public void replace(SettableBeanProperty property)
public void remove(SettableBeanProperty property)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |