public interface ModelGenerator<M>
修飾子とタイプ | メソッドと説明 |
---|---|
M |
createNextModel(M current) |
M |
firstModel() |
java.lang.String |
toString(M model)
This method is used by
write(Path, Object, OpenOption...) as default. |
default void |
write(java.nio.file.Path path,
M model,
java.nio.file.OpenOption... options)
Write a model on a file.
|
M createNextModel(M current)
current
- model to be based for the next one.M firstModel()
default void write(java.nio.file.Path path, M model, java.nio.file.OpenOption... options) throws java.io.IOException
path
- file name of the writemodel
- to write in the pathoptions
- options for writingjava.io.IOException
- if anyjava.lang.String toString(M model)
write(Path, Object, OpenOption...)
as default.model
- to write