next

inline fun <T : Enum<T>> T.next(step: Int = 1): T

Returns the next enum entry in a cyclic manner.