nu.zoom.ldap.eon.connection
Class ConnectionGUID

java.lang.Object
  extended by nu.zoom.ldap.eon.connection.ConnectionGUID
All Implemented Interfaces:
Serializable

public class ConnectionGUID
extends Object
implements Serializable

A globally unique key used to identify connection instances.

Version:
$Revision: 1.1.1.1 $
Author:
$Author: johan $
See Also:
Serialized Form

Method Summary
static ConnectionGUID fromString(String guid)
          Convert a string representation to an instance of a Connection GUID
static ConnectionGUID getInstance()
          Get a new connection id.
 String toString()
          Get a String representation of the ConnectionGUID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static final ConnectionGUID getInstance()
Get a new connection id. This is guaranteed to be globally unique.

Returns:
A new id.
See Also:
UniqueIDGenerator.getID()

fromString

public static final ConnectionGUID fromString(String guid)
Convert a string representation to an instance of a Connection GUID

Parameters:
guid - The string representation of a GUID. Can not be null.

toString

public String toString()
Get a String representation of the ConnectionGUID.

Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.