Delegating constructors #3747
Labels
feature
Proposed language feature that solves one or more problems
state-duplicate
This issue or pull request already exists
Today on the
collection
package we need aDelegatingList<E>
class. All it does is receive a list and, as the name suggests, delegate all calls to methods, getters, setters and such to that specific list.This week I had the same problem/need but with a
FocusNode
class. And I had to delegate 48 getters and setters to a baseFocusNode
. I'd like to propose a delegating constructor of sorts.I imagine the syntax to be something like:
The text was updated successfully, but these errors were encountered: