Class Resources


  • public class Resources
    extends java.lang.Object
    Utility methods for accessing resource bundles.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.Map<java.lang.String,​T> asMap​(java.util.ResourceBundle bundle, java.lang.String keyPrefix, java.util.function.Function<java.lang.Object,​T> converter)
      Get a subset of resources as a Map.
      static java.lang.String join​(java.util.ResourceBundle bundle, java.lang.String prefix)
      Combine a subset of resources into a string.
      • Methods inherited from class java.lang.Object

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

      • asMap

        public static <T> java.util.Map<java.lang.String,​T> asMap​(java.util.ResourceBundle bundle,
                                                                        java.lang.String keyPrefix,
                                                                        java.util.function.Function<java.lang.Object,​T> converter)
        Get a subset of resources as a Map.
      • join

        public static java.lang.String join​(java.util.ResourceBundle bundle,
                                            java.lang.String prefix)
        Combine a subset of resources into a string. The resources are converted to strings using toString() and concatenated in the alphabetical order of their keys.