Java Number Min Value minInt(int a, int b)

Here you can find the source of minInt(int a, int b)

Description

finds smaller of 2 valid int's based on COFH's minI method

License

LGPL

Declaration

public static int minInt(int a, int b) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    /**//  www . ja va 2 s  .  c o  m
     * finds smaller of 2 valid int's
     * based on COFH's minI method
     */
    public static int minInt(int a, int b) {

        return a < b ? a : b;
    }
}

Related

  1. minIndex(int ix1, int ix2)
  2. minIndexOfOneOf(String string, int start, String needles)
  3. minInt(double d)
  4. minInt(final Iterable numbers)
  5. minInt(float a, float b)
  6. minInteger(int var1, int var2)
  7. minInteger(Integer a, Integer b)
  8. minLength(String field, Integer from)
  9. minLength(String value, int min)