C# Class Apache.NMS.ActiveMQ.Util.IdGenerator

Datei anzeigen Open project: ThorTech/apache-nms Class Usage Examples

Public Methods

Method Description
Compare ( String id1, String id2 ) : int

Does a proper compare on the ids

GenerateId ( ) : String

Generate a Unique Id

GenerateSanitizedId ( ) : String

Generate a unique ID - that is friendly for a URL or file system

GetSeedFromId ( String id ) : String

From a generated id - return the seed (i.e. minus the count)

GetSequenceFromId ( String id ) : long

From a generated id - return the generator count

IdGenerator ( String prefix ) : System

Private Methods

Method Description
IdGenerator ( ) : System

Method Details

Compare() public static method

Does a proper compare on the ids
public static Compare ( String id1, String id2 ) : int
id1 String /// A ///
id2 String /// A ///
return int

GenerateId() public method

Generate a Unique Id
public GenerateId ( ) : String
return String

GenerateSanitizedId() public method

Generate a unique ID - that is friendly for a URL or file system
public GenerateSanitizedId ( ) : String
return String

GetSeedFromId() public static method

From a generated id - return the seed (i.e. minus the count)
public static GetSeedFromId ( String id ) : String
id String /// A ///
return String

GetSequenceFromId() public static method

From a generated id - return the generator count
public static GetSequenceFromId ( String id ) : long
id String /// A ///
return long

IdGenerator() public method

public IdGenerator ( String prefix ) : System
prefix String
return System