Here you can find the source of intToEncodedID(int input)
Parameter | Description |
---|---|
input | integer representing an event's ID |
public static String intToEncodedID(int input)
//package com.java2s; //License from project: Open Source License public class Main { /**//from www . j av a 2 s. c o m * @param input integer representing an event's ID * @return Base64 encoded ID string */ public static String intToEncodedID(int input) { int base = 36; // use base36 encoding (0-z) if (Character.MAX_RADIX < base) // just in case there are platforms with unusual MAX_RADIX base = 16; // revert to hex (0-F) return Integer.toString(input, base); } }