Class ValueObjectMerge<T,​V extends Number>

  • All Implemented Interfaces:
    ObjectMerge<T,​V>

    public class ValueObjectMerge<T,​V extends Number>
    extends Object
    implements ObjectMerge<T,​V>
    Merges objects, if their value is close enough (depends on threshold as well).
    Since:
    1.0
    Author:
    Christoph Praschl, Andreas Pointner
    • Constructor Detail

      • ValueObjectMerge

        public ValueObjectMerge()
    • Method Detail

      • merge

        public RecognizedObject<T,​V> merge​(RecognizedObject<T,​V> object1,
                                                 RecognizedObject<T,​V> object2,
                                                 double threshold)
        Description copied from interface: ObjectMerge
        Merges two different objects. Considers the threshold during the merge. If the objects do not fit according to the threshold, will not merge and return null.
        Specified by:
        merge in interface ObjectMerge<T,​V extends Number>
        Parameters:
        object1 - object 1 to merge
        object2 - object 2 to merge
        threshold - threshold to consider during the merge process
        Returns:
        merged object or null, if objects don't fit according to threshold