Skip to content

Instantly share code, notes, and snippets.

@dain
Created May 6, 2010 19:02
Show Gist options
  • Save dain/392561 to your computer and use it in GitHub Desktop.
Save dain/392561 to your computer and use it in GitHub Desktop.
public class Example {
public static interface Foo<T extends Bar> {
T[] getEnumValues();
}
public static interface Bar {
}
public static class FooImpl implements Foo<FooImpl.BarImpl> {
public enum BarImpl implements Bar {
A, B, C;
}
@Override
public BarImpl[] getEnumValues() {
return BarImpl.values();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment