Class Properties


  • public class Properties
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Properties()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void addOtherMaps​(java.lang.String propertyName, java.util.Map<java.math.BigDecimal,​java.util.Properties> orderedProperties, java.util.Map<?,​?>... otherValueMaps)  
      private static java.text.DecimalFormat getNewDecimalFormat()  
      static java.util.Map<java.math.BigDecimal,​java.util.Properties> loadFromResources​(java.lang.String resRelPath, java.lang.String propertyName, java.lang.ClassLoader... classLoaders)  
      static java.util.Properties loadFromResourcesAndMerge​(java.lang.String resRelPath, java.lang.String propertyName, java.util.Collection<java.lang.ClassLoader> classLoaders, java.util.Map<?,​?>... otherMaps)  
      static java.util.Properties loadFromResourceWithHigherPropertyValue​(java.lang.String resRelPath, java.lang.String propertyName, java.util.Collection<java.lang.ClassLoader> classLoaders, java.util.Map<?,​?>... otherMaps)  
      private static void setPriorities​(java.util.TreeMap<java.math.BigDecimal,​java.util.Properties> orderedProperties, java.util.Collection<java.util.Properties> propertiesWithoutPriority, java.text.DecimalFormat decimalFormat)  
      private static java.math.BigDecimal stringToBigDecimal​(java.lang.String value, java.text.DecimalFormat decimalFormat)  
      • Methods inherited from class java.lang.Object

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

      • Properties

        public Properties()
    • Method Detail

      • loadFromResources

        public static java.util.Map<java.math.BigDecimal,​java.util.Properties> loadFromResources​(java.lang.String resRelPath,
                                                                                                       java.lang.String propertyName,
                                                                                                       java.lang.ClassLoader... classLoaders)
                                                                                                throws java.io.IOException,
                                                                                                       java.text.ParseException
        Throws:
        java.io.IOException
        java.text.ParseException
      • loadFromResourceWithHigherPropertyValue

        public static java.util.Properties loadFromResourceWithHigherPropertyValue​(java.lang.String resRelPath,
                                                                                   java.lang.String propertyName,
                                                                                   java.util.Collection<java.lang.ClassLoader> classLoaders,
                                                                                   java.util.Map<?,​?>... otherMaps)
                                                                            throws java.io.IOException,
                                                                                   java.text.ParseException
        Throws:
        java.io.IOException
        java.text.ParseException
      • loadFromResourcesAndMerge

        public static java.util.Properties loadFromResourcesAndMerge​(java.lang.String resRelPath,
                                                                     java.lang.String propertyName,
                                                                     java.util.Collection<java.lang.ClassLoader> classLoaders,
                                                                     java.util.Map<?,​?>... otherMaps)
                                                              throws java.io.IOException,
                                                                     java.text.ParseException
        Throws:
        java.io.IOException
        java.text.ParseException
      • addOtherMaps

        private static void addOtherMaps​(java.lang.String propertyName,
                                         java.util.Map<java.math.BigDecimal,​java.util.Properties> orderedProperties,
                                         java.util.Map<?,​?>... otherValueMaps)
                                  throws java.text.ParseException
        Throws:
        java.text.ParseException
      • setPriorities

        private static void setPriorities​(java.util.TreeMap<java.math.BigDecimal,​java.util.Properties> orderedProperties,
                                          java.util.Collection<java.util.Properties> propertiesWithoutPriority,
                                          java.text.DecimalFormat decimalFormat)
                                   throws java.text.ParseException
        Throws:
        java.text.ParseException
      • getNewDecimalFormat

        private static java.text.DecimalFormat getNewDecimalFormat()
      • stringToBigDecimal

        private static java.math.BigDecimal stringToBigDecimal​(java.lang.String value,
                                                               java.text.DecimalFormat decimalFormat)
                                                        throws java.text.ParseException
        Throws:
        java.text.ParseException