org.lobobrowser.util

Class ID


public class ID
extends java.lang.Object

Author:
J. H. S.

Method Summary

static int
generateInt()
static long
generateLong()
static long
getGlobalProcessID()
Gets a process ID that is nearly guaranteed to be globally unique.
static String
getHexString(byte[] bytes)
static byte[]
getMD5Bytes(String content)
static int
random(int min, int max)

Method Details

generateInt

public static int generateInt()

generateLong

public static long generateLong()

getGlobalProcessID

public static long getGlobalProcessID()
Gets a process ID that is nearly guaranteed to be globally unique.

getHexString

public static String getHexString(byte[] bytes)

getMD5Bytes

public static byte[] getMD5Bytes(String content)

random

public static int random(int min,
                         int max)