public interface IDatatypePost<T,O> extends IDatatype
IDatatype which acts as a Function, in essence. The only difference
is that it requires an IDatatypeContext to be provided due to the expectation that
implementations of IDatatype are singletons.| Modifier and Type | Method and Description |
|---|---|
T |
apply(IDatatypeContext ctx,
O original)
Takes the expected input and transforms it based on the value held by
original. |
tabCompleteT apply(IDatatypeContext ctx, O original) throws CommandException
original. If original
is null, it is expected that the implementation of this method has a case to handle it, such that a
NullPointerException will never be thrown as a result.ctx - The datatype contextoriginal - The transformable valueCommandException