mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
Added the final method "name()", not being used presently, but useful if toString() is overridden.
This commit is contained in:
parent
86dfaf9ff0
commit
56e708aab0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user