Java Integer to Long int2long(int i)

Here you can find the source of int2long(int i)

Description

intlong

License

Apache License

Declaration

private static long int2long(int i) 

Method Source Code

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

public class Main {
    private static long int2long(int i) {
        long l = i & 0x7fffffffL;
        if (i < 0) {
            l |= 0x080000000L;//from w  w w .  ja va  2s  .c o  m
        }
        return l;
    }
}

Related

  1. int2long(final int[] i)
  2. int2long(int tInt)
  3. intToLong(final int value)
  4. intToLong(int high, int low)
  5. intToLong(int[] values)