1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package javax
.microedition
.swm
;
12 import cc
.squirreljme
.runtime
.cldc
.annotation
.Api
;
13 import cc
.squirreljme
.runtime
.cldc
.debug
.Debugging
;
16 * This represents the status of a task.
21 public enum TaskStatus
23 /** Fatally exited. */
39 /** Failed to start. */
51 * Maps ordinal back into task status.
53 * @param __i Index to get.
54 * @return The task status.
57 static final TaskStatus
__of(int __i
)
59 throw Debugging
.todo();
62 case 0: return TaskStatus.EXITED_FATAL;
63 case 1: return TaskStatus.EXITED_REGULAR;
64 case 2: return TaskStatus.EXITED_TERMINATED;
65 case 3: return TaskStatus.RUNNING;
66 case 4: return TaskStatus.START_FAILED;
67 case 5: return TaskStatus.STARTING;
70 return TaskStatus.EXITED_FATAL;