Class Facts

java.lang.Object
org.kuali.rice.krms.api.engine.Facts
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.ModelObjectBasic, org.kuali.rice.core.api.mo.ModelObjectComplete

public final class Facts extends Object implements org.kuali.rice.core.api.mo.ModelObjectComplete, Serializable

Parameter object for the Engine used to pass in mappings from Term to value (aka facts). In rule parlance, a fact is a concrete value of a term. Intuitively this relationship is one of definition and instance, similar to a parameter definition (e.g. int count) for a function (or method) in a programming language and a parameter value (e.g. 5).

Facts is immutable, and has a private constructor. Use the inner Facts.Builder class to construct.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Field Details

    • EMPTY_FACTS

      public static final Facts EMPTY_FACTS
      empty facts object
  • Method Details

    • getFactMap

      public Map<Term,Object> getFactMap()
      Returns:
      the Map of Terms to fact values. May be empty, will never be null. The returned map is unmodifiable.
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface org.kuali.rice.core.api.mo.ModelObjectComplete
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface org.kuali.rice.core.api.mo.ModelObjectComplete
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Specified by:
      toString in interface org.kuali.rice.core.api.mo.ModelObjectBasic
      Overrides:
      toString in class Object