Is there some template or something to implement iterface methods with accessing to wrapped member?
For example, suppose I have
public class MyClass implements List<Something> {
private final List<Something> core;
...
}
and now I want to implement List<Something>
by passing calls to wrapped like
@Override
public int size() {
return core.size();
}
and so on.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…