Java Long to Int longToInteger(long l)

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

Description

long To Integer

License

LGPL

Declaration

public static Integer longToInteger(long l) 

Method Source Code

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

public class Main {
    public static Integer longToInteger(long l) {
        if (l >= Integer.MIN_VALUE && l <= Integer.MAX_VALUE) {
            return (int) l;
        }//from   ww  w.ja v a 2 s.c o m
        return null;
    }
}

Related

  1. longToIntArray(long value)
  2. longToIntBounds(long value)
  3. longToIntBytes(long a)
  4. longToIntClip(final long value)
  5. longToInteger(final long value)
  6. longToIntHashCode(long value)
  7. longToInts(long n)