mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 04:50:58 +07:00
25 lines
368 B
Java
25 lines
368 B
Java
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
|
|
}
|
|
} |