From 98ec8d16181d37987e3eb6d3e5ad7b7805e49f6b Mon Sep 17 00:00:00 2001 From: bbimber Date: Wed, 21 Nov 2018 16:50:16 -0800 Subject: [PATCH 1/2] Add description getter to GATKReportTable --- .../hellbender/utils/report/GATKReportTable.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/broadinstitute/hellbender/utils/report/GATKReportTable.java b/src/main/java/org/broadinstitute/hellbender/utils/report/GATKReportTable.java index 075ca3c53e5..f32c93fc1ab 100644 --- a/src/main/java/org/broadinstitute/hellbender/utils/report/GATKReportTable.java +++ b/src/main/java/org/broadinstitute/hellbender/utils/report/GATKReportTable.java @@ -664,4 +664,8 @@ private List getOrderedRows() { return underlyingData; } } + + public String getTableDescription() { + return tableDescription; + } } From 303e823b60aec73d8792dc76921e54871e06a3e3 Mon Sep 17 00:00:00 2001 From: bbimber Date: Mon, 26 Nov 2018 09:42:39 -0800 Subject: [PATCH 2/2] Add javadoc and move method to getters --- .../utils/report/GATKReportTable.java | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/broadinstitute/hellbender/utils/report/GATKReportTable.java b/src/main/java/org/broadinstitute/hellbender/utils/report/GATKReportTable.java index f32c93fc1ab..e584e5f489b 100644 --- a/src/main/java/org/broadinstitute/hellbender/utils/report/GATKReportTable.java +++ b/src/main/java/org/broadinstitute/hellbender/utils/report/GATKReportTable.java @@ -558,22 +558,41 @@ else if ( info.getDataType().equals(GATKReportDataType.Unknown) && (obj instance out.println(); } + /** + * @return The number of rows in this table + */ public int getNumRows() { return underlyingData.size(); } + /** + * @return The number of columns in this table + */ public int getNumColumns() { return columnInfo.size(); } + /** + * @return A list of GATKReportColumn objects describing this table + */ public List getColumnInfo() { return columnInfo; } + /** + * @return The name of this table + */ public String getTableName() { return tableName; } + /** + * @return The description for this table + */ + public String getTableDescription() { + return tableDescription; + } + /** * Concatenates the rows from the table to this one * @@ -664,8 +683,4 @@ private List getOrderedRows() { return underlyingData; } } - - public String getTableDescription() { - return tableDescription; - } }