include enum.values() in signature hierarchy (IDEA-125077)

This commit is contained in:
Anna Kozlova
2014-06-24 21:00:28 +02:00
parent 7662a5e629
commit 643881aed8
3 changed files with 40 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
import java.util.function.Supplier;
class EnumValues {
{
Supplier<I<ABC>> supplier = () -> new C<>(ABC::values);
}
private static interface I<T> {
T get();
}
private static class C<E> implements I<E> {
C(Supplier<E[]> supplier) {}
@Override
public E get() {
return null;
}
}
private static enum ABC {
A, B, C
}
}