Package org.rossonet.ext.rules.api
Class Fact<T>
- java.lang.Object
-
- org.rossonet.ext.rules.api.Fact<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static intgetMaxCharsInValueToString()java.lang.StringgetName()Get the fact name.TgetValue()Get the fact value.inthashCode()static voidsetMaxCharsInValueToString(int maxCharsInValueToString)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Fact
public Fact(java.lang.String name, T value)Create a new fact.- Parameters:
name- of the factvalue- of the fact
-
-
Method Detail
-
getMaxCharsInValueToString
public static int getMaxCharsInValueToString()
-
setMaxCharsInValueToString
public static void setMaxCharsInValueToString(int maxCharsInValueToString)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
getName
public java.lang.String getName()
Get the fact name.- Returns:
- fact name
-
getValue
public T getValue()
Get the fact value.- Returns:
- fact value
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-