◆ getValue()
T fiftyone.pipeline.core.data.TryGetResult< T >.getValue | ( | ) |
Get the value returned.
The hasValue() method should always be called before fetching the value.
- Returns
- the returned value
\r\n
Return value of a 'try get' method.
This class contains an indicator as to whether a valid value was returned, and the value if the indicator is true.
T fiftyone.pipeline.core.data.TryGetResult< T >.getValue | ( | ) |
Get the value returned.
The hasValue() method should always be called before fetching the value.
boolean fiftyone.pipeline.core.data.TryGetResult< T >.hasValue | ( | ) |
Returns true if a value has been set in this instance.
void fiftyone.pipeline.core.data.TryGetResult< T >.setValue | ( | T | value | ) |
Set the value which is to be returned.
This also sets hasValue() to true.