Package loci.common

Class IniList

All Implemented Interfaces:
Serializable, Cloneable, Iterable<IniTable>, Collection<IniTable>, List<IniTable>, RandomAccess

public class IniList extends ArrayList<IniTable>
A data structure containing a parsed list of INI key/value tables.
Author:
Curtis Rueden ctrueden at wisc.edu
See Also:
  • Constructor Details

    • IniList

      public IniList()
  • Method Details

    • getHeaders

      public List<String> getHeaders()
      Gets the table names (headers) in the list.
      Returns:
      a List containing the name of each IniTable
    • getTable

      public IniTable getTable(String tableName)
      Gets the table with the given name (header).
      Parameters:
      tableName - the name of the table to look up
      Returns:
      the IniTable representing the named table, or null if no table with that name exists
    • flattenIntoHashMap

      public HashMap<String,String> flattenIntoHashMap()
      Flattens all of the INI tables into a single HashMap whose keys are of the format "[table name] table key".
      Returns:
      a HashMap containing all key/value pairs in every IniTable as described above