Class 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 Detail

      • StrictValueMatcher

        public StrictValueMatcher()
    • Method Detail

      • 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:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object