org.drools.reteoo
Class FactHandleImpl

java.lang.Object
  extended by org.drools.reteoo.FactHandleImpl
All Implemented Interfaces:
Serializable, FactHandle
Direct Known Subclasses:
Jsr94FactHandle

public class FactHandleImpl
extends Object
implements FactHandle

Implementation of FactHandle.

Author:
bob mcwhirter
See Also:
Serialized Form

Constructor Summary
protected FactHandleImpl(long id)
           
protected FactHandleImpl(long id, long recency)
          Construct.
 
Method Summary
 boolean equals(Object object)
           
 long getId()
           
 long getRecency()
           
 int hashCode()
           
(package private)  void invalidate()
           
 String toExternalForm()
          Convert this handle to an external representation.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FactHandleImpl

protected FactHandleImpl(long id)

FactHandleImpl

protected FactHandleImpl(long id,
                         long recency)
Construct.

Parameters:
id - Handle id.
Method Detail

equals

public boolean equals(Object object)
Overrides:
equals in class Object
See Also:
Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object

toExternalForm

public String toExternalForm()
Description copied from interface: FactHandle
Convert this handle to an external representation.

Specified by:
toExternalForm in interface FactHandle
Returns:
The external string form.
See Also:
FactHandle

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object

getRecency

public long getRecency()

getId

public long getId()

invalidate

void invalidate()


Copyright © 2001-2005 The Codehaus. All Rights Reserved.