Make enum classes comparable
#KT-3727 Fixed
This commit is contained in:
@@ -292,6 +292,15 @@
|
||||
ordinal: function () {
|
||||
return this.ordinal$;
|
||||
},
|
||||
equals_za3rmp$: function (o) {
|
||||
return this === o;
|
||||
},
|
||||
hashCode: function () {
|
||||
return getObjectHashCode(this);
|
||||
},
|
||||
compareTo_za3rmp$: function (o) {
|
||||
return this.ordinal$ < o.ordinal$ ? -1 : this.ordinal$ > o.ordinal$ ? 1 : 0;
|
||||
},
|
||||
toString: function () {
|
||||
return this.name();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user