/** * Construct a StringProperty from a literal value and with the given alias, e.g. "3.14 AS pi" * * @param literal the literal value * @param selectAs the alias to use. May be null. */ public static DoubleProperty literal(double literal, String selectAs) { return new DoubleProperty(null, String.valueOf(literal), selectAs, null); }
/** * Construct a StringProperty from a literal value and with the given alias, e.g. "3.14 AS pi" * * @param literal the literal value * @param selectAs the alias to use. May be null. */ public static DoubleProperty literal(double literal, String selectAs) { return new DoubleProperty(null, String.valueOf(literal), selectAs, null); }
/** * Construct a DoubleProperty from a {@link Function} and with the given alias, e.g. "AVG(column) AS average" * * @param function the function * @param selectAs the alias to use. May be null. */ public static DoubleProperty fromFunction(Function<Double> function, String selectAs) { return new DoubleProperty(function, selectAs); }
/** * Construct a DoubleProperty from a {@link Function} and with the given alias, e.g. "AVG(column) AS average" * * @param function the function * @param selectAs the alias to use. May be null. */ public static DoubleProperty fromFunction(Function<Double> function, String selectAs) { return new DoubleProperty(function, selectAs); }