final int hashSize = findSize(_size); _hashMask = hashSize-1;
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 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, _nextBucketIndex++); } _buckets = buckets; }
public BeanPropertyMap(Collection<SettableBeanProperty> properties, boolean caseInsensitivePropertyComparison) { _caseInsensitive = caseInsensitivePropertyComparison; _size = properties.size(); int bucketCount = findSize(_size); _hashMask = bucketCount-1; Bucket[] buckets = new Bucket[bucketCount]; for (SettableBeanProperty property : properties) { String key = getPropertyName(property); int index = key.hashCode() & _hashMask; buckets[index] = new Bucket(buckets[index], key, property, _nextBucketIndex++); } _buckets = buckets; }
public BeanPropertyMap(Collection<SettableBeanProperty> properties, boolean caseInsensitivePropertyComparison) { _caseInsensitive = caseInsensitivePropertyComparison; _size = properties.size(); int bucketCount = findSize(_size); _hashMask = bucketCount-1; Bucket[] buckets = new Bucket[bucketCount]; for (SettableBeanProperty property : properties) { String key = getPropertyName(property); int index = key.hashCode() & _hashMask; buckets[index] = new Bucket(buckets[index], key, property, _nextBucketIndex++); } _buckets = buckets; }
final int hashSize = findSize(_size); _hashMask = hashSize-1;
final int hashSize = findSize(_size); _hashMask = hashSize-1;