/** * Helper method to construct {@link ConstantValue}. * * @param value Value to be returned by created constant value. * @param <T> Type this value would evaluate to. * * @return An instance of {@link ConstantValue}. */ public static <T> ConstantValue<T> of(T value) { return new ConstantValue<T>(value); } }
/** * Helper method to construct {@link ConstantValue}. * * @param value Value to be returned by created constant value. * @param <T> Type this value would evaluate to. * * @return An instance of {@link ConstantValue}. */ public static <T> ConstantValue<T> of(T value) { return new ConstantValue<T>(value); } }