org.apache.ojb.broker.util
Class GUID
java.lang.Object
org.apache.ojb.broker.util.GUID
- All Implemented Interfaces:
- java.io.Serializable
- public class GUID
- extends java.lang.Object
- implements java.io.Serializable
simple GUID (Globally Unique ID) implementation.
A GUID is composed of two parts:
1. The IP-Address of the local machine.
2. A java.rmi.server.UID
- Version:
- $Id: GUID.java,v 1.5 2004/01/07 11:41:20 thma Exp $
- Author:
- Thomas Mahler
- See Also:
- Serialized Form
Constructor Summary |
GUID()
public no args constructor. |
GUID(java.lang.String theGuidString)
public constructor. |
Method Summary |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
java.lang.String |
toString()
returns the String representation of the GUID |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
GUID
public GUID()
- public no args constructor.
GUID
public GUID(java.lang.String theGuidString)
- public constructor.
The caller is responsible to feed a globally unique
String into the theGuidString parameter
- Parameters:
theGuidString
- a globally unique String
toString
public java.lang.String toString()
- returns the String representation of the GUID
equals
public boolean equals(java.lang.Object obj)
- See Also:
Object.equals(Object)
hashCode
public int hashCode()
- See Also:
Object.hashCode()
Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14