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

java.lang.Object
  extended bycom.hp.hpl.jena.rdf.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.2 $ $Date: 2003/04/03 11:22: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

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

Returns:
a string representation of the id

hashCode

public int hashCode()
return a hashcode for this id

Returns:
the hash code


Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.