mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
Added the final method "name()", not being used presently, but useful if toString() is overridden.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user