This may sound like a weird question, but how do you define a common movie that should extend the AND class to implement the interface? Im currently has a common function with the following prototype:
public static <E extends Enum<E>> List<E> buildEnumList(Class<E> enumClass)
It works the same way as intentionally. My problem is that I want to further limit walkable classes to those that are enumerations, and implement a specific Readable interface (and not in java.lang). Since generic uses the same extends to indicate that it should implement the interface, I see no way to get the following pseudo-behavior:
public static <E extends Enum<E> implements Readable> List<E> buildLexicographicalEnumList(Class<E> enumClass)
Paranaix
source share