document creator requirement, see #2131
This commit is contained in:
parent
0bb72ef692
commit
178c9145fe
5 changed files with 24 additions and 0 deletions
|
|
@ -38,6 +38,9 @@ trait Effect {
|
|||
* A constructor/factory, takes no parameters but creates a new value of type T every call.
|
||||
*/
|
||||
trait Creator[T] {
|
||||
/**
|
||||
* This method must return a different instance upon every call.
|
||||
*/
|
||||
def create(): T
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue