Java Object to int objToInt(Object obj)

Here you can find the source of objToInt(Object obj)

Description

obj To Int

License

Open Source License

Declaration

public static int objToInt(Object obj) 

Method Source Code

//package com.java2s;

public class Main {

    public static int objToInt(Object obj) {
        Integer integer = null;//from  www .  j a v a 2  s .  com
        if (obj != null) {
            integer = (Integer) obj;
        }
        return integer;
    }
}

Related

  1. castToInteger(final String uid)
  2. castToInteger(Object object)
  3. castToInteger(Object value)
  4. castToIntegerArray(Object[] array)
  5. castToInts(final double[] doubles)
  6. objToInteger(Object obj)