Class EntryMergeFilterPointOfService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Boolean apply​(AbstractOrderEntryModel candidate, AbstractOrderEntryModel target)
      Return Boolean.FALSE to create the item given by parameter as a separate cart entry or Boolean.TRUE to allow it to be merged into the given entry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.BiFunction

        andThen
    • Constructor Detail

      • EntryMergeFilterPointOfService

        public EntryMergeFilterPointOfService()
    • Method Detail

      • apply

        public java.lang.Boolean apply​(@Nonnull
                                       AbstractOrderEntryModel candidate,
                                       @Nonnull
                                       AbstractOrderEntryModel target)
        Description copied from interface: EntryMergeFilter
        Return Boolean.FALSE to create the item given by parameter as a separate cart entry or Boolean.TRUE to allow it to be merged into the given entry.

        Please be aware that allowing to merge does not always means the entries will be merged. There could be another filter registered, that could deny the merge.

        Specified by:
        apply in interface java.util.function.BiFunction<AbstractOrderEntryModel,​AbstractOrderEntryModel,​java.lang.Boolean>
        Specified by:
        apply in interface EntryMergeFilter
        Parameters:
        candidate - merge candidate
        target - entry to merge the candidate into
        Returns:
        TRUE is the merge is allowed