◆ AspectPropertyValueDefault()
Construct a new instance and set the value.
This also result in the 'hasValue' property being set to true.
- Parameters
-
- value - the value to set
Member Function Documentation
◆ getNoValueMessage()
String fiftyone.pipeline.engines.data.AspectPropertyValueDefault< T >.getNoValueMessage ( ) Get the message that will appear in the exception thrown if this instance has no value.
- Returns
- message associated with the NoValueException
Implements fiftyone.pipeline.engines.data.AspectPropertyValue< T >.
◆ getValue()
T fiftyone.pipeline.engines.data.AspectPropertyValueDefault< T >.getValue ( ) throws NoValueException Get the underlying value.
- Returns
- the underlying value
- Exceptions
-
- NoValueException - this exception will be thrown if the instance does not contain a value
Implements fiftyone.pipeline.engines.data.AspectPropertyValue< T >.
◆ hasValue()
boolean fiftyone.pipeline.engines.data.AspectPropertyValueDefault< T >.hasValue ( ) Indicates whether or not the instance contains a value for the property.
- Returns
- true if this instance contains a value, false otherwise
Implements fiftyone.pipeline.engines.data.AspectPropertyValue< T >.
◆ setNoValueMessage()
void fiftyone.pipeline.engines.data.AspectPropertyValueDefault< T >.setNoValueMessage ( String message ) Set the message that will appear in the exception thrown if this instance has no value.
- Parameters
-
- message - associated with the NoValueException
Implements fiftyone.pipeline.engines.data.AspectPropertyValue< T >.
◆ setValue()
void fiftyone.pipeline.engines.data.AspectPropertyValueDefault< T >.setValue ( T value ) Set the underlying value.
- Parameters
-
- value - the value to set
Implements fiftyone.pipeline.engines.data.AspectPropertyValue< T >.