private static Stream<Enum<?>> enumConstants(Class<? extends Enum<?>> enumClass) {
            return Arrays.stream(enumClass.getEnumConstants());
        }
Map database integer values to enum ordinal values.

@param <E> the enum type to map
@param type the enum type to map
@return an enum mapper that matches on {@link Enum#ordinal()}
core/src/main/java/org/jdbi/v3/core/mapper/EnumMapper.java