單擊【完成】按鈕
package com
public class ColorEnum
{
private String type;
public ColorEnum RED = new ColorEnum(
public ColorEnum YELLOW = new ColorEnum(
public ColorEnum BLUE = new ColorEnum(
public ColorEnum BLACK = new ColorEnum(
public ColorEnum GREEN = new ColorEnum(
private ColorEnum(String type)
{
super();
this
}
public int hashCode()
{
final int PRIME =
int result =
result = PRIME * result + ((type == null) ?
return result;
}
public boolean equals(Object obj)
{
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj
return false;
final ColorEnum other = (ColorEnum) obj;
if (type == null)
{
if (other
return false;
} else if (!type
return false;
return true;
}
}
這裡運行的例子是運行在插件開發環境中的
導出生成可以部署的安裝包是非常簡單的
right
From:http://tw.wingwit.com/Article/program/Java/ky/201311/29078.html