Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


waggle.core.id
Class XRandomID

java.lang.Object
  extended by waggle.core.id.XRandomID


public final class XRandomID
extends Object

XRandomID.

Random string generator used to create:


Method Summary
static String get()
          Generate a random, fixed length, string.
static String get(int numRandomBytes)
          Generate a random, specified length, hexadecimal string.
static String toLogableString(String randomID)
          Return a logable version of a random ID.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

get

public static String get()
Generate a random, fixed length, string.
Returns:
A random, fixed length, string.

get

public static String get(int numRandomBytes)
Generate a random, specified length, hexadecimal string.
Parameters:
numRandomBytes - the specified length
Returns:
A random, specified length, hexadecimal string.

toLogableString

public static String toLogableString(String randomID)
Return a logable version of a random ID.
Parameters:
randomID - The random ID.
Returns:
The logable version of a random ID.

Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.