Revert StaticDisplayState; For hosted only allow debug to be used.
[SquirrelJME.git] / modules / meep-swm / src / main / java / javax / microedition / swm / TaskStatus.java
blob2344810db0cbcea662ac3850f38bbb2a7f229e73
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
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;
15 /**
16 * This represents the status of a task.
18 * @since 2016/06/24
20 @Api
21 public enum TaskStatus
23 /** Fatally exited. */
24 @Api
25 EXITED_FATAL,
27 /** Normal exit. */
28 @Api
29 EXITED_REGULAR,
31 /** Terminated. */
32 @Api
33 EXITED_TERMINATED,
35 /** Running. */
36 @Api
37 RUNNING,
39 /** Failed to start. */
40 @Api
41 START_FAILED,
43 /** Starting. */
44 @Api
45 STARTING,
47 /** End. */
50 /**
51 * Maps ordinal back into task status.
53 * @param __i Index to get.
54 * @return The task status.
55 * @since 2018/11/04
57 static final TaskStatus __of(int __i)
59 throw Debugging.todo();
60 /*switch (__i)
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;
69 default:
70 return TaskStatus.EXITED_FATAL;
71 }*/