Java Integer Create toInt(T value)

Here you can find the source of toInt(T value)

Description

to Int

License

Open Source License

Declaration

public static <T extends Number> int toInt(T value) 

Method Source Code

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

public class Main {
    public static <T extends Number> int toInt(T value) {
        return Integer.parseInt(String.valueOf(value));
    }//from w  w w  .  j a  v a  2s. c o m
}

Related

  1. toInt(String value, Integer defaultValue)
  2. toInt(String value, Integer fallback)
  3. toInt(String[] a, int off, int len)
  4. toInt(String[] s)
  5. toInt(String[] s, int i)
  6. toInt(T[] v)
  7. toInt24(final int value)
  8. toInt32(int[] data, int startIndex)
  9. toInt32(long x)