Java Integer Create toInt24(final int value)

Here you can find the source of toInt24(final int value)

Description

to Int

License

Open Source License

Declaration

public static byte[] toInt24(final int value) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte[] toInt24(final int value) {
        return new byte[] { (byte) (value >>> 16), (byte) (value >>> 8), (byte) value };
    }//w  w  w.  ja  v  a  2  s .  c o  m
}

Related

  1. toInt(String[] a, int off, int len)
  2. toInt(String[] s)
  3. toInt(String[] s, int i)
  4. toInt(T value)
  5. toInt(T[] v)
  6. toInt32(int[] data, int startIndex)
  7. toInt32(long x)
  8. toInt32(Object prmIntObject)
  9. toInt4Trim(String value, int _default)