DOC
- document typeT
- codegen model type@FunctionalInterface public interface TranslatorConstructor<DOC extends HasMainInterface,T extends ClassOrInterface<T>>
Translator
interface. This is a more modern approach
to the factory pattern.Modifier and Type | Method and Description |
---|---|
Translator<DOC,T> |
apply(Speedment speedment,
Generator gen,
DOC document)
Constructs the
Translator instance. |
Translator<DOC,T> apply(Speedment speedment, Generator gen, DOC document)
Translator
instance.
This method is ment to be implemented using a functional reference to the implementing classes constructor method.
speedment
- the speedment instancegen
- the code generator to usedocument
- the document to generate fromCopyright © 2016 Speedment, Inc.. All rights reserved.