Java Number Min Value minLimit(float value, float min)

Here you can find the source of minLimit(float value, float min)

Description

min Limit

License

Open Source License

Declaration

public static float minLimit(float value, float min) 

Method Source Code

//package com.java2s;

public class Main {
    public static float minLimit(float value, float min) {
        return value < min ? min : value;
    }//from ww  w.j  a  v a  2 s  .c  o m

    public static double minLimit(double value, double min) {
        return value < min ? min : value;
    }

    public static int minLimit(int value, int min) {
        return value < min ? min : value;
    }
}

Related

  1. minInteger(Integer a, Integer b)
  2. minLength(String field, Integer from)
  3. minLength(String value, int min)
  4. minLengthExpression(final String operand, final long minLength)
  5. minLimit(double d, double limit)
  6. minLog2(int input)
  7. minMax(double v, double min, double max)
  8. minMax(int i)
  9. minmax(int min, int max, int now)