Here you can find the source of maxLimit(float value, float max)
public static float maxLimit(float value, float max)
//package com.java2s; public class Main { public static float maxLimit(float value, float max) { return value > max ? max : value; }//from w w w . ja v a2s. c o m public static double maxLimit(double value, double max) { return value > max ? max : value; } public static int maxLimit(int value, int max) { return value > max ? max : value; } }