Class DifferService

java.lang.Object
de.danielbechler.diff.differ.DifferService
All Implemented Interfaces:
DifferConfigurer

public class DifferService extends Object implements DifferConfigurer
  • Constructor Details

  • Method Details

    • register

      public ObjectDifferBuilder register(DifferFactory differFactory)
      Description copied from interface: DifferConfigurer
      Registers a new Differ to be used when comparing objects. Differs that have been registered later always win over earlier Differs. This way it is easily possible to override the default behavior, without actually removing the standard differs.
      Specified by:
      register in interface DifferConfigurer
      Parameters:
      differFactory - Factory that creates a new Differ. Will be called exactly once and the resulting Differ will be pushed to the underlying DifferProvider.
      Returns:
      The ObjectDifferBuilder for chaining.
    • getDifferFactories

      public Collection<DifferFactory> getDifferFactories()