Java Long to longToNBuf(long l, char[] chars)

Here you can find the source of longToNBuf(long l, char[] chars)

Description

long To N Buf

License

Open Source License

Declaration

private static StringBuilder longToNBuf(long l, char[] chars) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static StringBuilder longToNBuf(long l, char[] chars) {
        int upgrade = chars.length;
        StringBuilder result = new StringBuilder();
        int last;
        while (l > 0) {
            last = (int) (l % upgrade);
            result.append(chars[last]);//from ww  w.j  a v  a2 s.co  m
            l /= upgrade;
        }
        return result;
    }
}

Related

  1. longToFrontInt(long data)
  2. longToLex(long v)
  3. longToLittleEndianBytes(long value, byte[] destination, int offset, int length)
  4. longToN62(long l)
  5. longToName(long l)
  6. longToNetworkByteOrderArray(long addr)
  7. longToNetworkBytes(long value)
  8. longToNumberWithDecimalPlaces(long longValue, int decimalPlaces)
  9. LongToOctString(final long value)