/** * Returns an aggregation to find the minimum value of all supplied * {@link java.lang.Comparable} implementing values.<br/> * This aggregation is similar to: <pre>SELECT MIN(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the minimum value over all supplied values */ public static <Key, Value> Aggregation<Key, Comparable, Comparable> comparableMin() { return new AggregationAdapter(new ComparableMinAggregation<Key, Value>()); }
/** * Returns an aggregation to find the minimum value of all supplied * {@link java.lang.Comparable} implementing values.<br/> * This aggregation is similar to: <pre>SELECT MIN(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the minimum value over all supplied values */ public static <Key, Value> Aggregation<Key, Comparable, Comparable> comparableMin() { return new AggregationAdapter(new ComparableMinAggregation<Key, Value>()); }