Java Long to Byte longToByte(long[] values)

Here you can find the source of longToByte(long[] values)

Description

long To Byte

License

Open Source License

Declaration

public static byte[] longToByte(long[] values) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte[] longToByte(long[] values) {
        if (values == null) {
            return null;
        }/*from   w  w w . j a  v a 2s .c o m*/

        byte[] results = new byte[values.length];
        for (int i = 0; i < values.length; i++) {
            results[i] = (byte) values[i];
        }
        return results;
    }
}

Related

  1. longToByte(long l)
  2. longToByte(long l)
  3. longToByte(long number)
  4. longToByte(long value)
  5. longToByte(long x)
  6. longToByte8(long value)