publicinterface OptionValueTuple<Option,Value> {
Option getOption();
Value getValue();
}
Option can be of any type, in particular it could be represented as
- an enum value
- a Class object in particular an annotation class object
- a String
How can I implement that interface but change the return type of getOption() to something different?
I guess you mean my custom OptionValueTuple should return a custom MultiOption ?
About these two fragments:
How can I implement that interface but change the return type of getOption() to something different?
I guess you mean my custom OptionValueTuple should return a custom MultiOption ?