本文整理汇总了Java中com.helger.commons.lang.EnumHelper类的典型用法代码示例。如果您正苦于以下问题:Java EnumHelper类的具体用法?Java EnumHelper怎么用?Java EnumHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EnumHelper类属于com.helger.commons.lang包,在下文中一共展示了EnumHelper类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: cleanup
import com.helger.commons.lang.EnumHelper; //导入依赖的package包/类
/**
* 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 (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 ();
}
示例2: getFromIDOrNull
import com.helger.commons.lang.EnumHelper; //导入依赖的package包/类
@Nullable
public static EField getFromIDOrNull (@Nullable final String sID)
{
return EnumHelper.getFromIDOrNull (EField.class, sID);
}
示例3: getFromIDOrNull
import com.helger.commons.lang.EnumHelper; //导入依赖的package包/类
@Nullable
public static ESpace getFromIDOrNull (@Nullable final String sID)
{
return EnumHelper.getFromIDOrNull (ESpace.class, sID);
}
示例4: getFromIDOrNull
import com.helger.commons.lang.EnumHelper; //导入依赖的package包/类
@Nullable
public static EDirValue getFromIDOrNull (@Nullable final String sID)
{
return EnumHelper.getFromIDOrNull (EDirValue.class, sID);
}