dsto.dfc.util
Class AbstractNamedObject

java.lang.Object
  extended by dsto.dfc.util.AbstractNamedObject
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
NamedObject

public abstract class AbstractNamedObject
extends Object
implements Comparable

Abstract base class for objects with a name that (at least partially) defines their identity. Provides toString (), equals (), hashCode () and compareTo ().

Version:
$Revision$
Author:
Matthew Phillips

Constructor Summary
AbstractNamedObject()
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
abstract  String getName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractNamedObject

public AbstractNamedObject()
Method Detail

getName

public abstract String getName()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


Copyright © 2008 Commonwealth of Australia