String (int status) { return switch (status) { case ThreadReference.THREAD_STATUS_MONITOR -> "waiting for monitor entry"; case ThreadReference.THREAD_STATUS_NOT_STARTED -> "not started"; case ThreadReference.THREAD_STATUS_RUNNING -> "runnable"; case ThreadReference.THREAD_STATUS_SLEEPING -> "sleeping"; case ThreadReference.THREAD_STATUS_WAIT -> "waiting"; case ThreadReference.THREAD_STATUS_ZOMBIE -> "zombie"; case ThreadReference.THREAD_STATUS_UNKNOWN -> "unknown"; default -> "undefined"; }; }