Package inra.ijpb.measure
Class ResultsBuilder
java.lang.Object
inra.ijpb.measure.ResultsBuilder
public class ResultsBuilder
extends java.lang.Object
Builder-type class to hold results
Basically it will keep appending results to a larger results table
Built in a way where we can chain them together
- Author:
- oburri
-
Constructor Summary
Constructors Constructor Description ResultsBuilder()
Basic constructor.ResultsBuilder(ij.measure.ResultsTable rt)
Constructs a ResultsBuilder initializing the default table to the input one. -
Method Summary
Modifier and Type Method Description ResultsBuilder
addResult(ij.measure.ResultsTable rt)
Add a results table to the already existing table.ij.measure.ResultsTable
getResultsTable()
Get the current results table.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ResultsBuilder
public ResultsBuilder()Basic constructor. It creates a default empty table. -
ResultsBuilder
public ResultsBuilder(ij.measure.ResultsTable rt)Constructs a ResultsBuilder initializing the default table to the input one.- Parameters:
rt
- initial results table
-
-
Method Details
-
addResult
Add a results table to the already existing table.- Parameters:
rt
- table to add- Returns:
- current results builder
-
getResultsTable
public ij.measure.ResultsTable getResultsTable()Get the current results table.- Returns:
- current results table
-