Java Integer Create toInt32(long x)

Here you can find the source of toInt32(long x)

Description

to Int

License

Apache License

Declaration

public static int toInt32(long x) 

Method Source Code

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

public class Main {

    public static int toInt32(long x) {
        if ((int) x == x) {
            return (int) x;
        }//from   w w w. j a va2s.  c  om
        throw new IllegalArgumentException("Int " + x + " out of range");
    }
}

Related

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