Java Long to Short long2short(long l)

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

Description

longshort

License

Apache License

Declaration

public static short long2short(long l) 

Method Source Code

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

public class Main {
    public static short long2short(long l) {
        return (short) (int) (l << 48 >> 48);
    }//w  w w  .  j  a v a  2  s.c  o m
}

Related

  1. Long2Short(long i)
  2. long2short(long l)
  3. longToShort(final long value)
  4. longToShort(long l)
  5. longToShort(long[] values)