Added the final method "name()", not being used presently, but useful if toString() is overridden.

This commit is contained in:
Matt Weaver 2008-08-12 16:21:39 -06:00
parent 86dfaf9ff0
commit 56e708aab0

View File

@ -46,6 +46,10 @@ public abstract class Enum<E extends Enum<E>> implements Comparable<E> {
return ordinal;
}
public final String name() {
return name;
}
public String toString() {
return name;
}