ReportContent

org.suecarter.tablediff.ReportContent
See theReportContent companion object
case class ReportContent[+R, +C, +M](rowHeaders: ReportSection[R], columnHeaders: ReportSection[C], mainData: ReportSection[M], rowColumnHeaders: ReportSection[C], fillForwardBlankHeaders: Boolean)

Class to contain report content. Think of the report being broken into 4 sections

rowColumnHeaders| columnHeaders
-------------------------------
rowHeaders      | mainData

Attributes

C

Type of all column header elements (including rowColumn header)

M

Type of main data elements

R

Type of row header elements

columnHeaders

top right section

fillForwardBlankHeaders

if repeating values in the header sections are left blank, fill forward the values so that the produced diff has better context in header which drives the diff matching algorithm. Default true

mainData

bottom right section

rowColumnHeaders

top left section

rowHeaders

bottom left section

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Constructors

def this(r: Array[Array[R]], c: Array[Array[C]], m: Array[Array[M]], rch: Array[Array[C]])

Concrete methods

def isEmpty: Boolean

report is considered empty if every section has zero width and height

report is considered empty if every section has zero width and height

Attributes

def isEquivalent(rightReport: ReportContent[_, _, _]): Boolean

check to see if this report is equivalent to right report

check to see if this report is equivalent to right report

Attributes

Returns:

true if all sections are equal.

how many columns in the main data

how many columns in the main data

Attributes

def mapAllCells[T = Any, S](mapFunction: T => S): ReportContent[S, S, S]

Utility to apply function to every element in this report

Utility to apply function to every element in this report

Attributes

Returns:

A new transformed report

def nonEmpty: Boolean

true if there is data in any of the report sections

true if there is data in any of the report sections

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val columnCount: Int

how many main columns

how many main columns

Attributes

val columnDepth: Int

how deep are the column headers

how deep are the column headers

Attributes

val mainDataRows: Int

how many rows in the main data

how many rows in the main data

Attributes

val rowCount: Int

how many rows

how many rows

Attributes

how deep is the row section

how deep is the row section

Attributes

val rowWidth: Int

how deep are the row headers

how deep are the row headers

Attributes