Class UnifiedDiffConfiguration<E,​F>

  • Type Parameters:
    E - the type of elements that are compared to produce the first level diff
    F - the type of sub-elements that can be compared to produce the second level diff when an element is modified
    All Implemented Interfaces:
    Serializable, Cloneable, Map<String,​Object>

    public class UnifiedDiffConfiguration<E,​F>
    extends DiffConfiguration<F>
    Configuration for UnifiedDiffDisplayer.
    Since:
    4.1RC1
    Version:
    $Id: fb2eeca000d2976940c99cfcaaec00b1e42e327b $
    See Also:
    Serialized Form
    • Constructor Detail

      • UnifiedDiffConfiguration

        public UnifiedDiffConfiguration()
    • Method Detail

      • getContextSize

        public int getContextSize()
        Returns:
        the number of unmodified elements to display before and after a chunk of modified elements
      • setContextSize

        public void setContextSize​(int contextSize)
        Sets the number of unmodified elements to display before and after a chunk of modified elements.
        Parameters:
        contextSize - the context size
      • getSplitter

        public Splitter<E,​F> getSplitter()
        Returns:
        the object used to split the modified elements into sub-elements in order to produce a more detailed diff
      • setSplitter

        public void setSplitter​(Splitter<E,​F> splitter)
        Sets The object used to split the modified elements into sub-elements in order to produce a more detailed diff.
        Parameters:
        splitter - the splitter