Java Integer Create toInt(int byteSignificance, byte b)

Here you can find the source of toInt(int byteSignificance, byte b)

Description

to Int

License

LGPL

Declaration

public static int toInt(int byteSignificance, byte b) 

Method Source Code

//package com.java2s;
/*/*from w  w w .  j av  a  2 s .  c o  m*/
 * Copyright (C) 2009 by Eric Herman <eric@freesa.org>
 * Use and distribution licensed under the
 * GNU Lesser General Public License (LGPL) version 2.1.
 * See the COPYING file in the parent directory for full text.
 */

public class Main {
    public static int toInt(int byteSignificance, byte b) {
        return ((b & 0xFF) << (8 * byteSignificance));
    }
}

Related

  1. toInt(final String string)
  2. toInt(final String strPriority)
  3. toInt(final String text, final int defaultValue)
  4. toInt(final String value)
  5. toInt(float value)
  6. toInt(int[] rgb)
  7. toInt(Integer i)
  8. toInt(Integer n)
  9. toInt(long l)