net.spy.db
Class DBSP.NamedObject

java.lang.Object
  extended by net.spy.db.DBSP.NamedObject
Direct Known Subclasses:
DBSP.Argument, DBSP.Parameter
Enclosing class:
DBSP

public abstract class DBSP.NamedObject
extends java.lang.Object

Objects with names.


Constructor Summary
protected DBSP.NamedObject(java.lang.String nm)
          Get an instance of a named object with the given name.
 
Method Summary
 boolean equals(java.lang.Object o)
          Test for equality.
 java.lang.String getName()
          Get the name of this object.
 int hashCode()
          Get the hash code of the name of this object.
 java.lang.String toString()
          String me.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBSP.NamedObject

protected DBSP.NamedObject(java.lang.String nm)
Get an instance of a named object with the given name.

Parameters:
nm - the name
Method Detail

getName

public java.lang.String getName()
Get the name of this object.


toString

public java.lang.String toString()
String me.

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Get the hash code of the name of this object.

Overrides:
hashCode in class java.lang.Object
Returns:
getName().hashCode()

equals

public boolean equals(java.lang.Object o)
Test for equality.

Overrides:
equals in class java.lang.Object
Parameters:
o - object to test against
Returns:
true if o is a NamedObject object with the same name


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.