profilepk.java

来自「Ejb的一些写好的测试程序」· Java 代码 · 共 18 行

JAVA
18
字号
package ProfileTest;

public class ProfilePK implements java.io.Serializable {
    public String profile;

    public boolean equals( Object other ) {
      if ( other instanceof ProfilePK ) {
	ProfilePK otherKey = (ProfilePK)other;
	return ( (profile.equals( otherKey.profile ) ) );
      }
	return false;
    }

    public int hashCode() {
	return profile.hashCode();
    }
}

⌨️ 快捷键说明

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