Java Integer Create toIntDefaultIfNull(Integer configured, int theDefault)

Here you can find the source of toIntDefaultIfNull(Integer configured, int theDefault)

Description

to Int Default If Null

License

Apache License

Declaration

public static int toIntDefaultIfNull(Integer configured, int theDefault) 

Method Source Code

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

public class Main {
    public static int toIntDefaultIfNull(Integer configured, int theDefault) {
        return configured != null ? configured.intValue() : theDefault;
    }/*from  w  w w.j  a  v a  2  s. co m*/
}

Related

  1. toIntArray(String[] ss)
  2. toIntArrayUnshifted(byte... arguments)
  3. toIntBE(byte[] src, int offset)
  4. toIntBigEndian(byte[] input)
  5. toIntDecoded(String s)
  6. toInteger(boolean b)
  7. toInteger(boolean bool)
  8. toInteger(boolean bool)
  9. toInteger(boolean bool)