Java Long to Byte long2byte(long l)

Here you can find the source of long2byte(long l)

Description

longbyte

License

Apache License

Declaration

public static byte long2byte(long l) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static byte long2byte(long l) {
        return (byte) (int) (l << 56 >> 56);
    }//from  w w  w  .j a v a 2 s .c o m
}

Related

  1. long2byte(byte[] b, long a)
  2. long2Byte(byte[] bytes, long value, int offset)
  3. Long2Byte(long i)
  4. long2byte(long ival, byte b[], int offset)
  5. long2byte(long l)
  6. longToByte(byte[] buf, int off, long value)
  7. longToByte(final long value)
  8. longToByte(long a_value)
  9. longToByte(long i)