<commit_before>/*
 *  Copyright 2001-2010 <NAME>
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.joda.beans;

import java.util.Map.Entry;

/**
 * A property that binds a {@code Bean} to a {@code MetaProperty}.
 * <p>
 * This is the standard implementation of a property.
 * It defers the strategy of getting and setting the value to the meta-property.
 * <p>
 * This implementation is also a map entry to aid performance in {@code }
 * 
 * @param <B>  the type of the bean
 * @param <P>  the type of the property content
 * @author <NAME>
 */
public final class StandardProperty<B, P> implements Property<B, P>, Entry<String, Property<B, P>> {

    /** The bean that the property is bound to. */
    private final B bean;
    /** The meta-property that the property is bound to. */
    private final MetaProperty<B, P> metaProperty;

    /**
     * Factory to create a property avoiding duplicate generics.
     * 
     * @param beanType  the bean type
     * @param propertyName  the property name
     */
    public static <B, P> StandardProperty<B, P> of(B bean, MetaProperty<B, P> metaProperty) {
        return new StandardProperty<B, P>(bean, metaProperty);
    }<commit_msg>Javadoc fix<commit_after>/*
 *  Copyright 2001-2010 <NAME>
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.joda.beans;

import java.util.Map.Entry;

/**
 * A property that binds a {@code Bean} to a {@code MetaProperty}.
 * <p>
 * This is the standard implementation of a property.
 * It defers the strategy of getting and setting the value to the meta-property.
 * <p>
 * This implementation is also a map entry to aid performance in {@code }
 * 
 * @param <B>  the type of the bean
 * @param <P>  the type of the property content
 * @author <NAME>
 */
public final class StandardProperty<B, P> implements Property<B, P>, Entry<String, Property<B, P>> {

    /** The bean that the property is bound to. */
    private final B bean;
    /** The meta-property that the property is bound to. */
    private final MetaProperty<B, P> metaProperty;

    /**
     * Factory to create a property avoiding duplicate generics.
     * 
     * @param bean  the bean that the property is bound to, not null
     * @param metaProperty  the meta property, not null
     */
    public static <B, P> StandardProperty<B, P> of(B bean, MetaProperty<B, P> metaProperty) {
        return new StandardProperty<B, P>(bean, metaProperty);
    }
{'fraction_non_alphanumeric': 0.09276865456640737, 'fraction_numerical': 0.006914433880726016, 'mean_word_length': 3.2393162393162394, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4886403', 'n_tokens_mistral': 979, 'n_tokens_neox': 954, 'n_words': 448}