Java Integer Create toInt(Number wrapped)

Here you can find the source of toInt(Number wrapped)

Description

to Int

License

Open Source License

Declaration

public static int toInt(Number wrapped) 

Method Source Code

//package com.java2s;

public class Main {
    public static int toInt(Number wrapped) {
        if (wrapped == null) {
            return -1;
        }//  ww w .  j ava 2  s  .co  m

        return wrapped.intValue();
    }
}

Related

  1. toInt(long l)
  2. toInt(long unsignedInt)
  3. toInt(long[] a)
  4. toInt(Number num)
  5. toInt(Number value)
  6. toInt(Object bean, int defaultValue)
  7. toInt(Object num)
  8. toInt(Object num, int defValue)
  9. toInt(Object o)