Class LabelHeaders

Object
LabelHeaders

public class LabelHeaders extends Object
Headers in a CSV file for the non-results (i.e. labels) part of a feature-row
Author:
Owen Feehan
  • Constructor Details

    • LabelHeaders

      public LabelHeaders(String[] nonGroupHeaders)
      Creates with only non-group headers
      Parameters:
      nonGroupHeaders - headers describing the non-feature columns outputted in the CSV related to identifying a row
    • LabelHeaders

      public LabelHeaders(String[] nonGroupHeaders, String[] groupHeaders)
      Creates a new LabelHeaders instance.
      Parameters:
      nonGroupHeaders - Headers describing the non-feature columns outputted in the CSV related to identifying a row (but not its group)
      groupHeaders - Headers describing the non-feature columns outputted in the CSV related to identifying the group of a row
  • Method Details

    • allHeaders

      public String[] allHeaders()
      The non-group and group headers combined (in this order respectively)
      Returns:
      the combined headers in a newly created array
    • getGroupHeaders

      public String[] getGroupHeaders()
      Headers describing the non-feature columns outputted in the CSV related to identifying the group of a row