com.beans.Property Maven / Gradle / Ivy
package com.beans;
import java.util.function.Supplier;
/**
*
* A mutable property. Provides access to a value which could be modified by other sources.
*
*
* An extension of {@link Supplier}, with mutability.
*
*
* A property is nullable.
*
*
* @param type of data
*
* @since JavaBeans 1.0
*/
public interface Property extends Supplier {
/**
* Gets the value of the property.
*
* @return the value of the property.
*/
@Override
T get();
/**
* Sets the value of the property.
*
* @param value value to set.
*/
void set(T value);
}