Java Long to Int longToInt(long l)

Here you can find the source of longToInt(long l)

Description

long To Int

License

Open Source License

Declaration

public static int longToInt(long l) 

Method Source Code

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

public class Main {
    public static int longToInt(long l) {
        if (l < Integer.MIN_VALUE || l > Integer.MAX_VALUE) {
            throw new IllegalArgumentException(l + " cannot be cast to int");
        }/*  w  w w .  java2 s.  c o m*/
        return (int) l;
    }
}

Related

  1. long2int(final long[] a)
  2. Long2Int(long i)
  3. long2int(Long source)
  4. longToInt(final Long l, final String name, final int deflt)
  5. longToInt(long d)
  6. longToInt(Long l)
  7. longToInt(Long l)
  8. longToInt(long value)
  9. longToInt(long[] values)