Java Integer Create toInt(short leftShort, short rightShort)

Here you can find the source of toInt(short leftShort, short rightShort)

Description

to Int

License

Open Source License

Declaration

public static int toInt(short leftShort, short rightShort) 

Method Source Code

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

public class Main {
    public static int toInt(short leftShort, short rightShort) {

        int leftInt = leftShort;
        int rightInt = rightShort;
        return leftInt | (rightInt << 16);
    }/*from  w w  w.  java  2 s .c o m*/
}

Related

  1. toInt(Object value)
  2. toInt(Object value)
  3. toInt(Object value, int defaultValue)
  4. toInt(Object value, int nullValue)
  5. toInt(Object vo)
  6. ToInt(short n1, short n2)
  7. toInt(short s0, short s1)
  8. toInt(short x, short y)
  9. toInt(short[] arr)