colus 2002/07/30 22:17:28 Modified: src/java/org/apache/avalon/framework Enum.java Log: Implements hashCode. Revision Changes Path 1.14 +10 -0 jakarta-avalon/src/java/org/apache/avalon/framework/Enum.java Index: Enum.java =================================================================== RCS file: /home/cvs/jakarta-avalon/src/java/org/apache/avalon/framework/Enum.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- Enum.java 26 Jun 2002 09:22:17 -0000 1.13 +++ Enum.java 31 Jul 2002 05:17:28 -0000 1.14 @@ -126,6 +126,16 @@ } /** + * Returns a hash code value for the object. + * + * @return a hash code value for this object + */ + public int hashCode() + { + return m_name.hashCode(); + } + + /** * Retrieve the name of this Enum item, set in the constructor. * @return the name <code>String</code> of this Enum item */
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>