Hey Felix Feisst: Hardy Ferentschik and me have mused a bit more about this. How about this: Instead of (ab)-using getKey() you create a new sub-interface of Node exposing a getter for the set element if present. Then one can obtain an instance of this via myNode.as(NewNodeSubType.class).getSetElement().
|