public class Fact<T> extends java.lang.Object implements NameValueReferable<T>
Rule
.
Facts are not immutable; they may be changed by rules and used to derive a result state.Constructor and Description |
---|
Fact(NameValueReferable<T> fact) |
Fact(java.lang.String name,
T value) |
Fact(T obj) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The method getName() gets the name of the Fact.
|
T |
getValue()
The method getValue() gets the value of the Fact.
|
int |
hashCode() |
void |
setName(java.lang.String name)
The method setName() sets the name of the Fact.
|
void |
setValue(T value)
The method setValue() sets the value of the Fact.
|
java.lang.String |
toString()
The toString() method returns the toString of the object contained in the Fact.
|
public Fact(java.lang.String name, T value)
public Fact(T obj)
public Fact(NameValueReferable<T> fact)
public java.lang.String getName()
getName
in interface NameValueReferable<T>
public void setName(java.lang.String name)
setName
in interface NameValueReferable<T>
name
- the name of the Factpublic T getValue()
getValue
in interface NameValueReferable<T>
public void setValue(T value)
setValue
in interface NameValueReferable<T>
value
- the value of the Factpublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object