java.lang.Object
com.aquima.interactions.matching.impl.model.Case
All Implemented Interfaces:
ICase, IMatchValue

public class Case extends Object implements ICase
This class contains the values of a single case in the casebase.
Since:
6.2
Author:
O. Kerpershoek, F. van der Meer
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Description copied from interface: ICase
      This method returns a unique ID for the case. The ID of the case is used to identify the case in the match result.
      Specified by:
      getId in interface ICase
      Returns:
      A unique ID for the case (never null).
    • setKeyValue

      protected void setKeyValue(ISingleValue keyValue)
    • setValue

      protected void setValue(int index, IMatchValue matchValue)
    • getKeyValue

      public ISingleValue getKeyValue()
      Description copied from interface: ICase
      This method returns the value of the case for the key field of the casebase. Only single-valued attributes can be used as key field.
      Specified by:
      getKeyValue in interface ICase
      Returns:
      the key field value of the case.
    • getValues

      public IMatchValue[] getValues()
      Description copied from interface: ICase
      This method returns an array containing all the values of the case that can be matched. The values are returned in the exact same order as the match functions defined for the casebase.

      Important note: This ordering of the output array is a design v.s. optimization issue which has favored to the optimization side. Since a casebase consisting of 1,000,000 cases matching over 20 attributes per case will result in 20 million hash map lookups. Since the order is known from the clients point of view one can access this array directly resulting in a much faster process.

      Specified by:
      getValues in interface ICase
      Returns:
      an array containing all the values of the case that can be matched.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object