Class CompositeSource

java.lang.Object
org.variantsync.diffdetective.util.CompositeSource
All Implemented Interfaces:
Source

public class CompositeSource extends Object implements Source
Represents a Source without arguments.
  • Field Details

    • sourceExplanation

      private final String sourceExplanation
    • sources

      private final List<Source> sources
  • Constructor Details

  • Method Details

    • getSourceExplanation

      public String getSourceExplanation()
      Description copied from interface: Source
      Returns a short, one line explanation or identifier of this source. The result is used by Source.shallowExplanation() and is formatted together with Source.getSourceArguments() like "sourceExplanation(argument1, argument2)".
      Specified by:
      getSourceExplanation in interface Source
    • getSources

      public List<Source> getSources()
      Description copied from interface: Source
      Returns a list of sources that influenced this source. Noteworthy processing steps and incorporation of multiple sources are implemented as a tree of sources. This functions returns the children of this source.

      By default, the first child source is treated specially in Source.getRootSource().

      Specified by:
      getSources in interface Source
      Returns:
      an empty list by default
    • toString

      public String toString()
      Overrides:
      toString in class Object