Class StrictValueMatcher

java.lang.Object
org.openrefine.wikidata.schema.strategies.StrictValueMatcher
All Implemented Interfaces:
ValueMatcher

public class StrictValueMatcher extends Object implements ValueMatcher
Simple value matching strategy which only treats value as identical when they are strictly equal.
Author:
Antonin Delpeuch
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    boolean
    match(org.wikidata.wdtk.datamodel.interfaces.Value existing, org.wikidata.wdtk.datamodel.interfaces.Value added)
    Compare two values and return true if they should be treated as identical.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • StrictValueMatcher

      public StrictValueMatcher()
  • Method Details

    • match

      public boolean match(org.wikidata.wdtk.datamodel.interfaces.Value existing, org.wikidata.wdtk.datamodel.interfaces.Value added)
      Description copied from interface: ValueMatcher
      Compare two values and return true if they should be treated as identical.
      Specified by:
      match in interface ValueMatcher
      Parameters:
      existing - the existing value on the entity
      added - the value to add/remove
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

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

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