[jboss-svn-commits] JBL Code SVN: r19281 - labs/jbossrules/trunk/drools-core/src/main/java/org/drools/util.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Mar 27 23:48:39 EDT 2008
Author: mark.proctor at jboss.com
Date: 2008-03-27 23:48:39 -0400 (Thu, 27 Mar 2008)
New Revision: 19281
Modified:
labs/jbossrules/trunk/drools-core/src/main/java/org/drools/util/AbstractHashTable.java
Log:
JBRULES-1520 RightTuple merge for asymmetrical Rete propagations
-Removed FactEntryImpl, no longer used.
Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/util/AbstractHashTable.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/util/AbstractHashTable.java 2008-03-28 03:30:04 UTC (rev 19280)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/util/AbstractHashTable.java 2008-03-28 03:48:39 UTC (rev 19281)
@@ -441,82 +441,6 @@
}
}
- public static class FactEntryImpl
- implements
- FactEntry,
- Entry {
-
- private static final long serialVersionUID = 400L;
-
- public InternalFactHandle handle;
-
- public int hashCode;
-
- public Entry next;
-
- // private LinkedList list;
- public FactEntryImpl() {
-
- }
-
- public FactEntryImpl(final InternalFactHandle handle) {
- this.handle = handle;
- this.hashCode = handle.hashCode();
- // this.list = new LinkedList();
- }
-
- public FactEntryImpl(final InternalFactHandle handle,
- final int hashCode) {
- this.handle = handle;
- this.hashCode = hashCode;
- // this.list = new LinkedList();
- }
-
- public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
- handle = (InternalFactHandle)in.readObject();
- hashCode = in.readInt();
- next = (Entry)in.readObject();
- }
-
- public void writeExternal(ObjectOutput out) throws IOException {
- out.writeObject(handle);
- out.writeInt(hashCode);
- out.writeObject(next);
- }
-
- public InternalFactHandle getFactHandle() {
- return this.handle;
- }
-
- public Entry getNext() {
- return this.next;
- }
-
- public void setNext(final Entry next) {
- this.next = next;
- }
-
- //
- // void add(final LinkedListEntry tupleMatchEntry) {
- // this.list.add( tupleMatchEntry );
- // }
- // void remove(final LinkedListEntry tupleMatchEntry) {
- // this.list.remove( tupleMatchEntry );
- // }
-
- public int hashCode() {
- return this.hashCode;
- }
-
- public boolean equals(final Object object) {
- return (object == this) || (this.handle == ((FactEntryImpl) object).handle);
- }
-
- public String toString() {
- return "FactEntry( handle=" + this.handle + " hashcode=" + this.hashCode + " next=" + this.next + " )";
- }
- }
-
public static class FieldIndex implements Externalizable {
private static final long serialVersionUID = 1020010166351582645L;
More information about the jboss-svn-commits
mailing list