Java Integer Convert To convertIntToLong(Integer intId)

Here you can find the source of convertIntToLong(Integer intId)

Description

Interprets integer byte representation stored in 'db' as a long

License

Open Source License

Parameter

Parameter Description
intId a parameter

Declaration

public static Long convertIntToLong(Integer intId) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License"); you may

public class Main {
    /**/*ww w .j a v  a2 s .  c o  m*/
     * Interprets integer byte representation stored in 'db' as a long
     * 
     * @param intId
     */
    public static Long convertIntToLong(Integer intId) {
        if (intId == null) {
            return null;
        } else {
            return Long.valueOf(intId.intValue() & 0xffffffffL);
        }
    }
}

Related

  1. convertIntList(Integer[] list)
  2. convertIntoRange(Integer inValue, int inSteps, int inMin, int inMax)
  3. convertIntToDayOfWeek(int day)
  4. convertIntToDouble(final int[] intValues)
  5. convertIntToDWord(final int value)
  6. convertInttoMultiByte(int val)
  7. convertIntToTwoChar(int n)
  8. convertIntToUsignedBytes(int integer)
  9. fromInt(byte[] buffer, int pos, int i)