Class InventorySyncStatistics

    • Constructor Detail

      • InventorySyncStatistics

        public InventorySyncStatistics()
    • Method Detail

      • getReportMessage

        public java.lang.String getReportMessage()
        Builds a summary of the inventory sync statistics instance that looks like the following example:
             Summary: 25 inventory entries were processed in total (9 created, 5 updated, 2 failed to sync).
         
        Specified by:
        getReportMessage in class BaseSyncStatistics<InventorySyncStatistics>
        Returns:
        summary message
      • getThis

        protected InventorySyncStatistics getThis()
        Description copied from class: BaseSyncStatistics
        Returns this instance of T, which extends BaseSyncStatistics. The purpose of this method is to make sure that this is an instance of a class which extends BaseSyncStatistics in order to be used in the generic methods of the class. Otherwise, without this method, the methods above would need to cast this to T which could lead to a runtime error of the class was extended in a wrong way.
        Specified by:
        getThis in class BaseSyncStatistics<InventorySyncStatistics>
        Returns:
        an instance of the class that overrides this method.