org.qi4j.api.property
Class ComputedPropertyInstance<T>
java.lang.Object
org.qi4j.api.property.AbstractPropertyInstance<T>
org.qi4j.api.property.ComputedPropertyInstance<T>
- All Implemented Interfaces:
- Property<T>, PropertyInfo
public abstract class ComputedPropertyInstance<T>
- extends AbstractPropertyInstance<T>
ComputedPropertyInstance
is the base implementation of Property
.
ComputedPropertyInstance
protected ComputedPropertyInstance(PropertyInfo aPropertyInfo)
throws IllegalArgumentException
- Construct an instance of
ComputedPropertyInstance
.
- Parameters:
aPropertyInfo
- The property info. This argument must not be null
.
- Throws:
IllegalArgumentException
- Thrown if the specified aPropertyInfo
argument is null
.
ComputedPropertyInstance
protected ComputedPropertyInstance(Method accessor)
get
public abstract T get()
- This is the method to implement.
- Returns:
- Returns null by default.
set
public void set(T anIgnoredValue)
throws IllegalArgumentException,
IllegalStateException
- Throws
IllegalArgumentException
exception.
- Parameters:
anIgnoredValue
- This value is ignored.
- Throws:
IllegalArgumentException
- Thrown by default.
IllegalStateException
- if the property is immutable or computed