public JsonDeserializer<?> build(BeanProperty forProperty) { BeanPropertyMap propertyMap = new BeanPropertyMap(_properties.values()); propertyMap.assignIndexes(); return new BeanDeserializer(_beanDesc, forProperty, _valueInstantiator, propertyMap, _backRefProperties, _ignorableProps, _ignoreAllUnknown, _anySetter, _injectables); } }
public SettableBeanProperty find(String key) { int index = key.hashCode() & _hashMask; Bucket bucket = _buckets[index]; // Let's unroll first lookup since that is null or match in 90+% cases if (bucket == null) { return null; } // Primarily we do just identity comparison as keys should be interned if (bucket.key == key) { return bucket.value; } while ((bucket = bucket.next) != null) { if (bucket.key == key) { return bucket.value; } } // Do we need fallback for non-interned Strings? return _findWithEquals(key, index); }
throws JsonMappingException Iterator<SettableBeanProperty> it = _beanProperties.allProperties(); UnwrappedPropertyHandler unwrapped = null; ExternalTypeHandler.Builder extTypes = null; _beanProperties.replace(prop); _beanProperties.remove(prop);
public boolean hasProperty(String propertyName) { return _beanProperties.find(propertyName) != null; }
throws JsonMappingException Iterator<SettableBeanProperty> it = _beanProperties.allProperties(); while (it.hasNext()) { SettableBeanProperty prop = it.next(); +referredType.getRawClass().getName()+")"); _beanProperties.replace(new SettableBeanProperty.ManagedReferenceProperty(refName, prop, backProp, _forClass.getAnnotations(), isContainer));
/** * * @since 1.6 */ public Iterator<SettableBeanProperty> properties() { if (_beanProperties == null) { // since 1.7 throw new IllegalStateException("Can only call before BeanDeserializer has been resolved"); } return _beanProperties.allProperties(); }
/** * Accessor for checking number of deserialized properties. * * @since 1.7 */ public int getPropertyCount() { return _beanProperties.size(); }
public BeanPropertyMap(Collection<SettableBeanProperty> properties) { _size = properties.size(); int bucketCount = findSize(_size); _hashMask = bucketCount-1; Bucket[] buckets = new Bucket[bucketCount]; for (SettableBeanProperty property : properties) { String key = property.getName(); int index = key.hashCode() & _hashMask; buckets[index] = new Bucket(buckets[index], key, property); } _buckets = buckets; }
public boolean hasProperty(String propertyName) { return _beanProperties.find(propertyName) != null; }
/** * * @since 1.6 */ public Iterator<SettableBeanProperty> properties() { if (_beanProperties == null) { // since 1.7 throw new IllegalStateException("Can only call before BeanDeserializer has been resolved"); } return _beanProperties.allProperties(); }
/** * Accessor for checking number of deserialized properties. * * @since 1.7 */ public int getPropertyCount() { return _beanProperties.size(); }
public BeanPropertyMap(Collection<SettableBeanProperty> properties) { _size = properties.size(); int bucketCount = findSize(_size); _hashMask = bucketCount-1; Bucket[] buckets = new Bucket[bucketCount]; for (SettableBeanProperty property : properties) { String key = property.getName(); int index = key.hashCode() & _hashMask; buckets[index] = new Bucket(buckets[index], key, property); } _buckets = buckets; }
SettableBeanProperty prop = _beanProperties.find(propName);
throws JsonMappingException Iterator<SettableBeanProperty> it = _beanProperties.allProperties(); UnwrappedPropertyHandler unwrapped = null; ExternalTypeHandler.Builder extTypes = null; _beanProperties.replace(prop); _beanProperties.remove(prop);
public JsonDeserializer<?> build(BeanProperty forProperty) { BeanPropertyMap propertyMap = new BeanPropertyMap(_properties.values()); propertyMap.assignIndexes(); return new BeanDeserializer(_beanDesc, forProperty, _valueInstantiator, propertyMap, _backRefProperties, _ignorableProps, _ignoreAllUnknown, _anySetter, _injectables); } }
/** * * @since 1.6 */ public Iterator<SettableBeanProperty> properties() { if (_beanProperties == null) { // since 1.7 throw new IllegalStateException("Can only call before BeanDeserializer has been resolved"); } return _beanProperties.allProperties(); }
/** * Accessor for checking number of deserialized properties. * * @since 1.7 */ public int getPropertyCount() { return _beanProperties.size(); }