java.lang.Object
io.github.tonywasher.joceanus.oceanus.resource.OceanusBundleLoader

public final class OceanusBundleLoader extends Object
Bundle Loader.
  • Method Details

    • getLoader

      public static OceanusBundleLoader getLoader(String pBundleName, Function<String,ResourceBundle> pLoader)
      Obtain standard loader.
      Parameters:
      pBundleName - the Bundle Name
      pLoader - the bundle loader
      Returns:
      the loader
    • getValue

      public <K extends Enum<K> & OceanusBundleId> String getValue(K pKey)
      Build name of resource for Key.
      Type Parameters:
      K - the resource key data type
      Parameters:
      pKey - the resource Key
      Returns:
      the resourceName
    • getKeyForEnum

      public static <E extends Enum<E>> OceanusBundleId getKeyForEnum(Map<E,OceanusBundleId> pMap, E pValue)
      Obtain key for enum.
      Type Parameters:
      E - the enum type
      Parameters:
      pMap - the map
      pValue - the enum value
      Returns:
      the resource key