class Enums
package thx
Helper class for enums.
Static methods
staticcompare<T> (a:T, b:T):Int
Compares two enum values. Comparison is based on the constructor definition
index. If a
and b
are the same constructor and have parameters, parameters
are compared using the same rules applied for thx.Arrays.compare
.
staticmax<T> (a:T, b:T):T
Returns the higher between two enum instances. Sequence is determined by their index in the type definition.
staticmin<T> (a:T, b:T):T
Returns the lower between two enum instances. Sequence is determined by their index in the type definition.
staticinline sameConstructor<T> (a:T, b:T):Bool
Compares two enum instances for equality ignoring the constructor arguments.