Java Integer Create toInteger(Object o)

Here you can find the source of toInteger(Object o)

Description

to Integer

License

Open Source License

Declaration

public static Integer toInteger(Object o) 

Method Source Code

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

public class Main {
    public static Integer toInteger(Object o) {
        if (o == null) {
            return null;
        }//from w  w w  .java 2 s .  c o m
        return Integer.valueOf(String.valueOf(o));
    }
}

Related

  1. toInteger(Object _inStrObj)
  2. toInteger(Object _value, int _default)
  3. toInteger(Object anObj)
  4. toInteger(Object cell)
  5. toInteger(Object o)
  6. toInteger(Object ob, Integer defaultInteger)
  7. toInteger(Object obj)
  8. toInteger(Object obj)
  9. toInteger(Object obj)