Class Ini4jConfigSection

java.lang.Object
nz.org.riskscape.config.ini4j.Ini4jConfigSection
All Implemented Interfaces:
nz.org.riskscape.config.ConfigSection, Ini4jConfigConstants

public class Ini4jConfigSection extends Object implements nz.org.riskscape.config.ConfigSection, Ini4jConfigConstants
  • Constructor Details

    • Ini4jConfigSection

      public Ini4jConfigSection(org.ini4j.Profile.Section section, URI location, String name)
  • Method Details

    • getOne

      public Optional<nz.org.riskscape.problem.ResultOrProblems<String>> getOne(String key)
      Specified by:
      getOne in interface nz.org.riskscape.config.ConfigSection
    • getAll

      public List<String> getAll(String key)
      Specified by:
      getAll in interface nz.org.riskscape.config.ConfigSection
    • toMap

      public Map<String,String> toMap()

      FIXME - there's a couple of issues with this: 1 - undefined behaviour on duplicate keys 2 - empty values are returned, inconsistent with getOne() and getAll()

      Specified by:
      toMap in interface nz.org.riskscape.config.ConfigSection
    • toMultiMap

      public Map<String,List<String>> toMultiMap()
      Specified by:
      toMultiMap in interface nz.org.riskscape.config.ConfigSection
    • getOneRequired

      public nz.org.riskscape.problem.ResultOrProblems<String> getOneRequired(String key)
      Specified by:
      getOneRequired in interface nz.org.riskscape.config.ConfigSection
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getLocation

      public URI getLocation()
      Specified by:
      getLocation in interface nz.org.riskscape.config.ConfigSection
    • getName

      public String getName()
      Specified by:
      getName in interface nz.org.riskscape.config.ConfigSection