Class MultiKeyProperties


  • public class MultiKeyProperties
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.util.List<java.lang.String>> properties  
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiKeyProperties​(java.io.InputStream inStream)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable java.util.List<java.lang.String> getProperty​(java.lang.String key)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • properties

        private final java.util.Map<java.lang.String,​java.util.List<java.lang.String>> properties
    • Constructor Detail

      • MultiKeyProperties

        public MultiKeyProperties​(java.io.InputStream inStream)
    • Method Detail

      • getProperty

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