Class MultiKeyProperties

java.lang.Object
org.languagetool.tools.MultiKeyProperties

public class MultiKeyProperties extends Object
A very simple property-style configuration. If a key occurs more than once, the values will be merged to a list with the other properties of that key. This is useful if property files get merged by Maven. Note: this is not a full replacement for Properties, e.g. it does not support values that span multiple lines
  • Field Details

  • Constructor Details

    • MultiKeyProperties

      public MultiKeyProperties(InputStream inStream)
  • Method Details

    • getProperty

      @Nullable public @Nullable List<String> getProperty(String key)
      Returns:
      a list of values or null if there's no such key