All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.natpryce.makeiteasy.PropertyValue Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
package com.natpryce.makeiteasy;

/**
 * The value of a Property, which is acquired from a Donor
 *
 * @param  the type of object that has the property
 * @param  the type of the value of the property
 */
public class PropertyValue {
    private final Property property;
    private final Donor valueDonor;

    public PropertyValue(Property property, Donor valueDonor) {
        this.property = property;
        this.valueDonor = valueDonor;
    }

    /**
     * The property
     */
    public Property property() {
        return property;
    }

    /**
     * The property's value
     */
    public V value() {
        return valueDonor.value();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy