com.natpryce.makeiteasy.PropertyValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of make-it-easy Show documentation
Show all versions of make-it-easy Show documentation
A tiny framework that makes it easy to write Test Data Builders in Java
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 extends V> valueDonor;
public PropertyValue(Property property, Donor extends V> 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