public static Configuration<?> generate(ValueMode mode, ValueType type, int sortIdx, int size) {
		switch (mode) {
		case SMALL:
			if (type == ValueType.NUMBERS) {
				return new Configuration<>(sortIdx, mode, size, type, ValueGenerator.smallNumberValues(size));
			} else if (type == ValueType.LETTERS) {
				return new Configuration<>(sortIdx, mode, size, type, ValueGenerator.smallLetterValues(size));
			}
			break;
		case RANDOM:
			if (type == ValueType.NUMBERS) {
				return new Configuration<>(sortIdx, mode, size, type, ValueGenerator.randomNumberValues(size));
			} else if (type == ValueType.LETTERS) {
				return new Configuration<>(sortIdx, mode, size, type, ValueGenerator.randomLetterValues(size));
			}
			break;
		}
		DEBUGLOG.severe("Unknown mode: '" + mode + "' or type: '" + type + "'");
		return null;
	}