I have two implementations of an interface
EncryptionService
**ABCEncryptionServiceImpl**
encrypt(byte[] bytes)
decrypt(byte[] bytes)
**XYZEncryptionServiceImpl**
encrypt(List<String> strings)
decrypt(List<String> strings)
What I don't like is I have to:
Provide empty implementation in ABCEncryptionServiceImpl for methods:
encrypt(List<String> strings)
decrypt(List<String> strings)
Provide empty implementation in XYZEncryptionServiceImpl for methods:
encrypt(byte[] bytes)
decrypt(byte[] bytes)
Any ideas on how this issue should be handled in a better way i.e using Generics?