agentstatus.java

来自「aglet的部分源码」· Java 代码 · 共 51 行

JAVA
51
字号
package com.ibm.maf;/* * @(#)AgentStatus.java *  * IBM Confidential-Restricted *  * OCO Source Materials *  * 03L7246 (c) Copyright IBM Corp. 1996, 1998 *  * The source code for this program is not published or otherwise * divested of its trade secrets, irrespective of what has been * deposited with the U.S. Copyright Office. *//* * File: ./CfMAF/AgentStatus.java * From: maf.idl * Date: Fri Aug 29 15:13:36 1997 * By: idltojava JavaIDL Thu Feb 27 11:22:49 1997 */public final class AgentStatus implements java.io.Serializable {	public static final int _Running = 0, _Suspended = 1, _Terminated = 2;	public static final AgentStatus Running = new AgentStatus(_Running);	public static final AgentStatus Suspended = new AgentStatus(_Suspended);	public static final AgentStatus Terminated = new AgentStatus(_Terminated);	private int _value;	private AgentStatus(int _value) {		this._value = _value;	}	public static final AgentStatus from_int(int i) 			throws IllegalArgumentException {		switch (i) {		case _Running:			return Running;		case _Suspended:			return Suspended;		case _Terminated:			return Terminated;		default:			throw new IllegalArgumentException();		}	}	public int value() {		return _value;	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?