当前位置: 首页>>代码示例>>Java>>正文


Java EnumHelper类代码示例

本文整理汇总了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 ();
}
 
开发者ID:phax,项目名称:ph-commons,代码行数:44,代码来源:CommonsCleanup.java

示例2: getFromIDOrNull

import com.helger.commons.lang.EnumHelper; //导入依赖的package包/类
@Nullable
public static EField getFromIDOrNull (@Nullable final String sID)
{
  return EnumHelper.getFromIDOrNull (EField.class, sID);
}
 
开发者ID:phax,项目名称:ph-commons,代码行数:6,代码来源:ErrorTextProvider.java

示例3: getFromIDOrNull

import com.helger.commons.lang.EnumHelper; //导入依赖的package包/类
@Nullable
public static ESpace getFromIDOrNull (@Nullable final String sID)
{
  return EnumHelper.getFromIDOrNull (ESpace.class, sID);
}
 
开发者ID:phax,项目名称:ph-schematron,代码行数:6,代码来源:PSRichGroup.java

示例4: getFromIDOrNull

import com.helger.commons.lang.EnumHelper; //导入依赖的package包/类
@Nullable
public static EDirValue getFromIDOrNull (@Nullable final String sID)
{
  return EnumHelper.getFromIDOrNull (EDirValue.class, sID);
}
 
开发者ID:phax,项目名称:ph-schematron,代码行数:6,代码来源:PSDir.java


注:本文中的com.helger.commons.lang.EnumHelper类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。