Java Number Value Of valueOf(Integer value)

Here you can find the source of valueOf(Integer value)

Description

value Of

License

Open Source License

Declaration

public static Integer valueOf(Integer value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static Integer valueOf(Integer value) {
        return value != null ? value : 0;
    }/*from   w w w . j a v a 2s . c  o m*/

    public static Long valueOf(Long value) {
        return value != null ? value : 0L;
    }

    public static Double valueOf(Double value) {
        return value != null ? value : 0L;
    }

    public static Float valueOf(Float value) {
        return value != null ? value : 0L;
    }
}

Related

  1. valueOf(float f)
  2. valueOf(int i)
  3. valueOf(int i)
  4. valueOf(int number)
  5. valueOf(int[] source)
  6. valueOf(Integer value)
  7. valueOf(Short value)
  8. valueOf(T v)
  9. valueOfHexDigit(char digit)