站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

DefaultFactHandle (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.common
Class DefaultFactHandle

java.lang.Object
  extended by org.drools.common.DefaultFactHandle
All Implemented Interfaces:
Serializable, InternalFactHandle, FactHandle
Direct Known Subclasses:
InitialFactHandle, Jsr94FactHandle

public class DefaultFactHandle
extends Object
implements InternalFactHandle

Implementation of FactHandle.

Author:
Mark Proctor, bob mcwhirter
See Also:
Serialized Form

Constructor Summary
DefaultFactHandle()
           
DefaultFactHandle(long id, Object object)
           
DefaultFactHandle(long id, Object object, long recency)
          Construct.
 
Method Summary
 boolean equals(Object object)
           
 EqualityKey getEqualityKey()
           
 long getId()
           
 Object getObject()
           
 int getObjectHashCode()
           
 long getRecency()
           
 int hashCode()
           
 void invalidate()
           
 boolean isShadowFact()
           
 void setEqualityKey(EqualityKey key)
           
 void setObject(Object object)
           
 void setRecency(long recency)
           
 void setShadowFact(boolean shadowFact)
           
 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

DefaultFactHandle

public DefaultFactHandle()

DefaultFactHandle

public DefaultFactHandle(long id,
                         Object object)

DefaultFactHandle

public DefaultFactHandle(long id,
                         Object object,
                         long recency)
Construct.

Parameters:
id - Handle id.
Method Detail

equals

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

getObjectHashCode

public int getObjectHashCode()
Specified by:
getObjectHashCode in interface InternalFactHandle

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()
Specified by:
getRecency in interface InternalFactHandle

setRecency

public void setRecency(long recency)
Specified by:
setRecency in interface InternalFactHandle

getId

public long getId()
Specified by:
getId in interface InternalFactHandle

invalidate

public void invalidate()
Specified by:
invalidate in interface InternalFactHandle

isShadowFact

public boolean isShadowFact()
Specified by:
isShadowFact in interface InternalFactHandle

setShadowFact

public void setShadowFact(boolean shadowFact)
Specified by:
setShadowFact in interface InternalFactHandle

getObject

public Object getObject()
Specified by:
getObject in interface InternalFactHandle

setObject

public void setObject(Object object)
Specified by:
setObject in interface InternalFactHandle

getEqualityKey

public EqualityKey getEqualityKey()
Specified by:
getEqualityKey in interface InternalFactHandle
Returns:
the key

setEqualityKey

public void setEqualityKey(EqualityKey key)
Specified by:
setEqualityKey in interface InternalFactHandle
Parameters:
key - the key to set


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.