Class GordianBundleLoader
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.base.GordianBundleLoader
Bundle Loader. (Cloned from OceanusBundleLoader)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for bundleIds. -
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Enum<E>>
GordianBundleLoader.GordianBundleIdgetKeyForEnum(Map<E, GordianBundleLoader.GordianBundleId> pMap, E pValue) Obtain key for enum.static GordianBundleLoaderObtain standard loader.<K extends Enum<K> & GordianBundleLoader.GordianBundleId>
StringgetValue(K pKey) Build name of resource for Key.
-
Method Details
-
getLoader
Obtain standard loader.- Parameters:
pBundleName- the Bundle Name- Returns:
- the loader
-
getValue
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>> GordianBundleLoader.GordianBundleId getKeyForEnum(Map<E, GordianBundleLoader.GordianBundleId> pMap, E pValue) Obtain key for enum.- Type Parameters:
E- the enum type- Parameters:
pMap- the mappValue- the enum value- Returns:
- the resource key
-