Class Output<K extends OutputElement>

java.lang.Object
com.betterdiff.core.utils.output.Output<K>
Type Parameters:
K - Output element is an object that represents a part of the text that should be printed out. This element should contain addition information that will be part of the output. For example HTML output would expect to have styles and differences listed in the element. Console output may require some hints about how the text is long etc.

public abstract class Output<K extends OutputElement>
extends java.lang.Object
Typed interface for output utilities. This class is desinged to provide basic functions for diff output: 1) Condensed - Output in a form of whole text where all texts are condensed together. 2) Side by side - Texts are put next to each other.
Author:
troomar
  • Constructor Summary

    Constructors
    Constructor Description
    Output()  
  • Method Summary

    Modifier and Type Method Description
    abstract java.util.List<K> condensed()
    Output in a form of whole text where all texts are condensed together.
    abstract java.util.Map<java.lang.Integer,​java.util.List<K>> sideBySide()
    Output in a form where texts are put next to each other

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Output

      public Output()
  • Method Details

    • condensed

      public abstract java.util.List<K> condensed()
      Output in a form of whole text where all texts are condensed together.
      Returns:
    • sideBySide

      public abstract java.util.Map<java.lang.Integer,​java.util.List<K>> sideBySide()
      Output in a form where texts are put next to each other
      Returns: