T - The type that the value will resolve to.public interface ValueFactory<T> extends ArooaValue
ArooaValues that only resolve to a
thing of a single type.
Implementing this interface saves the new Type the trouble of needing to register a conversion.
| Modifier and Type | Interface and Description |
|---|---|
static class |
ValueFactory.Conversions |
| Modifier and Type | Method and Description |
|---|---|
T |
toValue()
Provide an instance of the type this is a factory for.
|
T toValue() throws ArooaConversionException
ArooaConversionException - If unable to provide a value.Copyright © 2023. All rights reserved.