01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.ejb.common;
12:
13: /**
14: * Entry that does '==' equality testing. This entity also includeds 'nextEntry' that
15: * allows it to be used as a linked list to track the insert order.
16: */
17: public class IdentityEntry extends EntrySet.Entry {
18: public IdentityEntry nextEntry;
19: public Object value;
20:
21: public IdentityEntry(Object key) {
22: super (key);
23: }
24:
25: public boolean equals(Object o) {
26: if (!(o instanceof IdentityEntry)) {
27: return false;
28: }
29: return (getKey() == ((EntrySet.Entry) o).getKey());
30: }
31:
32: }
|