[rules-users] Differences in how WorkingMemory is storing the objects: identity and equality
Mark Proctor
mproctor at codehaus.org
Sat Feb 3 10:12:38 EST 2007
default is Identity mode, its simpy the way it determines if the fact
already exists in the working memory.
fact.equals( fact ) is Equality mode
fact == fact is Identity mode.
Mark
nicolae oana wrote:
> Dear all,
>
> I read in Drools manual about how Working Memory stores the asserted
> objects : Identity mode and Equality mode.
> But I'm not sure I properly understood the differences. In what
> concerns the Equality mode, the return of a FactHandle is done only
> when a different type of object is asserted?( a type that not exists
> yet in HashTable?). In the rest cases nothing is happening ?
>
> Best regards,
> Oana.
>
>
> ------------------------------------------------------------------------
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A
> <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>
> for great tips from Yahoo! Answers
> <http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>
> users.
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070203/ef75f150/attachment.html
More information about the rules-users
mailing list