Class SummarizerListMultiline<T>

Object
org.anchoranalysis.bean.AnchorBean<Summarizer<T>>
org.anchoranalysis.plugin.io.bean.summarizer.Summarizer<T>
org.anchoranalysis.plugin.io.bean.summarizer.SummarizerListMultiline<T>
Type Parameters:
T - type of entity to summarize (its string representation is taken)

public class SummarizerListMultiline<T>
extends Summarizer<T>
Creates a string where each line is an element.

The string representation for each element is printed as a line.

Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    SummarizerListMultiline()  
  • Method Summary

    Modifier and Type Method Description
    void add​(T element)
    Adds a element to the summary.
    String describe()
    A string summarizing this item.
    boolean requiresImageMetadata()
    Whether a ImageMetadataInput is required as an input.

    Methods inherited from class org.anchoranalysis.plugin.io.bean.summarizer.Summarizer

    addAll

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • add

      public void add​(T element) throws org.anchoranalysis.core.exception.OperationFailedException
      Description copied from class: Summarizer
      Adds a element to the summary.
      Specified by:
      add in class Summarizer<T>
      Parameters:
      element - the element to add.
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException
    • describe

      public String describe() throws org.anchoranalysis.core.exception.OperationFailedException
      Description copied from class: Summarizer
      A string summarizing this item.
      Specified by:
      describe in class Summarizer<T>
      Returns:
      the description.
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException
    • requiresImageMetadata

      public boolean requiresImageMetadata()
      Description copied from class: Summarizer
      Whether a ImageMetadataInput is required as an input.
      Specified by:
      requiresImageMetadata in class Summarizer<T>
      Returns:
      true if the summarize requires ImageMetadataInput as input, or false if any input is acceptable.