class ValueGenerators {

    public static <T> ValueGenerator<T> constant(@Nullable final T constant) {
        return new ValueGenerator<T>() {
            @Override
            public T nextValue() {
                return constant;
            }

            @Override
            public String toString() {
                return "ValueGenerators.constant(" + constant + ")";
            }
        };
    }

    private  ValueGenerators();

}