com.helger.commons.lang.EnumHelper Java Examples
The following examples show how to use
com.helger.commons.lang.EnumHelper.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ErrorTextProvider.java From ph-commons with Apache License 2.0 | 4 votes |
@Nullable public static EField getFromIDOrNull (@Nullable final String sID) { return EnumHelper.getFromIDOrNull (EField.class, sID); }
Example #2
Source File: CommonsCleanup.java From ph-commons with Apache License 2.0 | 4 votes |
/** * Cleanup all custom caches contained in this library. Loaded SPI * implementations are not affected by this method! */ public static void cleanup () { // Reinitialize singletons to the default values if (LocaleCache.isInstantiated ()) LocaleCache.getInstance ().reinitialize (); if (CountryCache.isInstantiated ()) CountryCache.getInstance ().reinitialize (); if (LanguageCache.isInstantiated ()) LanguageCache.getInstance ().reinitialize (); if (SerializationConverterRegistry.isInstantiated ()) SerializationConverterRegistry.getInstance ().reinitialize (); if (MimeTypeDeterminator.isInstantiated ()) MimeTypeDeterminator.getInstance ().reinitialize (); if (ThirdPartyModuleRegistry.isInstantiated ()) ThirdPartyModuleRegistry.getInstance ().reinitialize (); if (TypeConverterRegistry.isInstantiated ()) TypeConverterRegistry.getInstance ().reinitialize (); if (URLProtocolRegistry.isInstantiated ()) URLProtocolRegistry.getInstance ().reinitialize (); if (EqualsImplementationRegistry.isInstantiated ()) EqualsImplementationRegistry.getInstance ().reinitialize (); if (HashCodeImplementationRegistry.isInstantiated ()) HashCodeImplementationRegistry.getInstance ().reinitialize (); // Clear caches if (DefaultTextResolver.isInstantiated ()) DefaultTextResolver.getInstance ().clearCache (); EnumHelper.clearCache (); ResourceBundleHelper.clearCache (); if (RegExCache.isInstantiated ()) RegExCache.getInstance ().clearCache (); CollatorHelper.clearCache (); LocaleHelper.clearCache (); StatisticsManager.clearCache (); SystemProperties.clearWarnedPropertyNames (); if (ImageDataManager.isInstantiated ()) ImageDataManager.getInstance ().clearCache (); // Clean this one last as it is used in equals and hashCode implementations! ClassHierarchyCache.clearCache (); }
Example #3
Source File: PSRichGroup.java From ph-schematron with Apache License 2.0 | 4 votes |
@Nullable public static ESpace getFromIDOrNull (@Nullable final String sID) { return EnumHelper.getFromIDOrNull (ESpace.class, sID); }
Example #4
Source File: PSDir.java From ph-schematron with Apache License 2.0 | 4 votes |
@Nullable public static EDirValue getFromIDOrNull (@Nullable final String sID) { return EnumHelper.getFromIDOrNull (EDirValue.class, sID); }