Java Long to String Long2String(final long value)

Here you can find the source of Long2String(final long value)

Description

Long String

License

Apache License

Declaration

public static String Long2String(final long value) 

Method Source Code

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

public class Main {
    public static String Long2String(final long value) {
        if (value >= 0) {
            return String.format("%08x", value);
        } else {/*from   w w w. j av a2 s  . com*/
            return String.format("-%08x", -value);
        }
    }
}

Related

  1. long2sortableStr(long val)
  2. Long2Str(long i)
  3. long2String(final long ip)
  4. long2string(long lng, StringBuilder buff)
  5. long2string(long longdata)
  6. long2String(long x)
  7. long2StringForLen(long num, String str)