next

inline fun <T : Enum<T>> T.next(): T

Returns the next enum entry in a cyclic manner.