Java Long to String longToString(long value)

Here you can find the source of longToString(long value)

Description

long To String

License

Apache License

Declaration

private static String longToString(long value) 

Method Source Code

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

public class Main {
    private static String longToString(long value) {
        if (value == Integer.MIN_VALUE) {
            return "Integer.MIN_VALUE";
        } else if (value == Integer.MAX_VALUE) {
            return "Integer.MAX_VALUE";
        } else if (value == Long.MIN_VALUE) {
            return "Long.MIN_VALUE";
        } else if (value == Long.MAX_VALUE) {
            return "Long.MAX_VALUE";
        } else {//w ww .j a  va 2s  . co m
            return Long.toString(value);
        }
    }
}

Related

  1. LongToString(long number, boolean bcdFlag, int bufferSize)
  2. longToString(long val)
  3. longToString(Long value)
  4. LongToString(long value)
  5. longToString(long value)
  6. longToString(long value)
  7. longToString(long[] values)