|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjess.HashCodeComputer
public class HashCodeComputer
The HashCodeComputer allows hash code values for objects to be computed depending on their status as instances of "value" or "non-value" classes.
(C) 2013 Sandia Corporation
| Constructor Summary | |
|---|---|
HashCodeComputer()
|
|
| Method Summary | |
|---|---|
static int |
hashCode(java.lang.Object o)
Return a hashCode value for an object. |
static boolean |
isValueObject(java.lang.Object o)
Report whether or not Jess considers an object to be a "value object." As far as Jess is concerned, an object can be considered a "value object" if the return value of its hashCode() method will never change during the time Jess is working with the object. |
static void |
setIsValueClass(Rete engine,
java.lang.String name,
boolean status)
Record whether the class by the given name is a value object class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HashCodeComputer()
| Method Detail |
|---|
public static int hashCode(java.lang.Object o)
o - the object
isValueObject(Object)public static boolean isValueObject(java.lang.Object o)
o - the object
setIsValueClass(Rete, String, boolean)
public static void setIsValueClass(Rete engine,
java.lang.String name,
boolean status)
throws java.lang.ClassNotFoundException
engine - the rule engine used to resolve the class namename - the name of a classstatus - true if class is a value class
java.lang.ClassNotFoundException - if there's no class by this name
|
© 2013 Sandia Corporation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||