directiveposition.java
来自「采用JAVA开发」· Java 代码 · 共 38 行
JAVA
38 行
/**
* @author <a href="mailto:jiahx@gctech.com.cn">贾洪祥 </a>
* @since 2004-8-24 16:12:34
* @version 1.0.0
*/
package com.gctech.sms.sp.dwzb;
public class DirectivePosition {
public static final DirectivePosition OVERALL_START = new DirectivePosition(
"OVERALL_START");
public static final DirectivePosition OVERALL_END = new DirectivePosition(
"OVERALL_END");
public static final DirectivePosition SEGMENT_START = new DirectivePosition(
"SEGMENT_START");
public static final DirectivePosition SEGMENT_END = new DirectivePosition(
"SEGMENT_END");
private final String myName; // for debug only
private DirectivePosition(String name) {
myName = name;
}
public boolean equals(Object dp) {
if (dp == null) {
return false;
} else {
return this.myName.equals(((DirectivePosition) dp).toString());
}
}
public String toString() {
return myName;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?