|
|
|
|
|
by marcosdumay
508 days ago
|
|
Make it generic, with some kind of Resource interface that Network is one of the implementations¹, and you get a dynamic effect system. But that thing you wrote is a static effect system. Having a singleton that you need to carry with the type doesn't make it not part of the type system. 1 - Or actually use Resource as a class. But Java wouldn't do this. |
|