Java Integer Create toInt32(Object prmIntObject)

Here you can find the source of toInt32(Object prmIntObject)

Description

to Int

License

Apache License

Declaration

public static int toInt32(Object prmIntObject) 

Method Source Code

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

public class Main {
    public static int toInt32(Object prmIntObject) {
        return toInt(prmIntObject);
    }/* ww  w.  j  ava 2  s  .co m*/

    public static int toInt(Object prmIntObject) {
        int rtnInt = 0;
        if (prmIntObject != null) {
            rtnInt = Integer.parseInt(prmIntObject.toString());
        }
        return rtnInt;
    }

    public static String toString(Object stringObject) {
        return toString(stringObject, "");
    }

    public static String toString(Object stringObject, String value2) {
        if (stringObject != null) {
            return stringObject.toString();
        } else {
            return value2;
        }
    }
}

Related

  1. toInt(T value)
  2. toInt(T[] v)
  3. toInt24(final int value)
  4. toInt32(int[] data, int startIndex)
  5. toInt32(long x)
  6. toInt4Trim(String value, int _default)
  7. toIntA(byte[] data)
  8. toIntArr(String s, String split)
  9. toIntArray(boolean[] array)