Java Number Min Value min(T v1, T v2)

Here you can find the source of min(T v1, T v2)

Description

min

License

Apache License

Declaration

public static <T extends Comparable<T>> T min(T v1, T v2) 

Method Source Code

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

public class Main {
    public static <T extends Comparable<T>> T min(T v1, T v2) {
        return v1.compareTo(v2) > 0 ? v2 : v1;
    }/*from w ww . ja va  2 s.com*/
}

Related

  1. min(String name)
  2. min(String s)
  3. min(T a, T b)
  4. min(T a, T b)
  5. min(T c1, T c2)
  6. min(T v1, T v2, int nullSupport)
  7. min2(double a, double b)
  8. min2(int a, int b)
  9. min2msec(int min)