Coding, Software Development, Java, Scala, Agile.
Results(Class enumType) { super(Enum.class); this.enumType = enumType; } @Override public Result generate(SourceOfRandomness random, GenerationStatus status) { Object[] values = enumType.getEnumConstants(); int index = status.attempts() % values.length; return (Result) values[index]; } @Override