com.hp.hpl.mesa.rdf.jena.model
Class AnonId

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.model.AnonId

public class AnonId
extends java.lang.Object

Create a new id for an anonymous node.

This id is guaranteed to be unique on this machine.

Version:
$Name: $ $Revision: 1.1 $ $Date: 2001/07/27 19:39:52 $
Author:
bwm

Constructor Summary
AnonId()
          Creates new AnonId
AnonId(java.lang.String id)
          Create a new AnonId from the string argument supplied
 
Method Summary
 boolean equals(java.lang.Object o)
          Test whether two id's are the same
 int hashCode()
          return a hashcode for this id
 java.lang.String toString()
          return a string representation of the id
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnonId

public AnonId()
Creates new AnonId

This id is guaranteed to be unique on this machine.


AnonId

public AnonId(java.lang.String id)
Create a new AnonId from the string argument supplied
Parameters:
id - A string representation of the id to be created.
Method Detail

equals

public boolean equals(java.lang.Object o)
Test whether two id's are the same
Overrides:
equals in class java.lang.Object
Parameters:
o - the object to be compared
Returns:
true if and only if the two id's are the same

toString

public java.lang.String toString()
return a string representation of the id
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the id

hashCode

public int hashCode()
return a hashcode for this id
Overrides:
hashCode in class java.lang.Object
Returns:
the hash code


Copyright © 2001 Hewlett-Packard. All Rights Reserved.