[Java API] [docs] Rephrase Javadoc of minBy/maxBy and link from min/max

This closes #244.