Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum MyInterfaceProvider<X>
- {
- MyImplementationOne<String>(new MyImplementationString()),
- MyImplementationTwo<Integer>(new MyImplementationInteger())
- MyInterface<X> clazz;
- MyInterfaceProvider(MyInterface<X> interf)
- {
- this.clazz = clazz;
- }
- public MyInterface<X> getImplementation()
- {
- return clazz;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement