memberkey.java
来自「数据仓库展示程序」· Java 代码 · 共 47 行
JAVA
47 行
/*
// $Id: //open/mondrian/src/main/mondrian/rolap/MemberKey.java#4 $
// (C) Copyright 2002-2005 Kana Software, Inc.
// This software is subject to the terms of the Common Public License
// Agreement, available at the following URL:
// http://www.opensource.org/licenses/cpl.html.
// (C) Copyright 2002-2005 Kana Software, Inc. and others.
// All Rights Reserved.
// You must accept the terms of that agreement to use this software.
//
// jhyde, 21 March, 2002
*/
package mondrian.rolap;
/**
* <code>MemberKey</code> todo:
*
* @author jhyde
* @since 21 March, 2002
* @version $Id: //open/mondrian/src/main/mondrian/rolap/MemberKey.java#4 $
**/
class MemberKey {
private final RolapMember parent;
private final Object value;
MemberKey(RolapMember parent, Object value) {
this.parent = parent;
this.value = value;
}
// override Object
public boolean equals(Object o) {
if (!(o instanceof MemberKey)) {
return false;
}
MemberKey other = (MemberKey) o;
return (other.parent == this.parent) &&
other.value.equals(this.value);
}
// override Object
public int hashCode() {
return ((parent == null)
? 0
: parent.hashCode() << 16) ^ value.hashCode();
}
}
// End MemberKey.java
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?