/** * Get the name of the first section. * * @return the name of the first section or null if there are no sections * @throws ArrayIndexOutOfBoundsException if there are no sections */ public String getSectionName() { return size() == 0 ? null : list.get(0); }
/** * Get the first section. * * @return the first section or null if there are no sections */ public IniSection getSection() { return size() == 0 ? null : sectionMap.get(list.get(0)); }