org.joda.time.field.UnsupportedDurationField.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(76)

本文整理了Java中org.joda.time.field.UnsupportedDurationField.<init>()方法的一些代码示例,展示了UnsupportedDurationField.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UnsupportedDurationField.<init>()方法的具体详情如下:
包路径:org.joda.time.field.UnsupportedDurationField
类名称:UnsupportedDurationField
方法名:<init>

UnsupportedDurationField.<init>介绍

[英]Constructor.
[中]建造师。

代码示例

代码示例来源:origin: joda-time/joda-time

/**
 * Gets an instance of UnsupportedDurationField for a specific named field.
 * The returned instance is cached.
 * 
 * @param type  the type to obtain
 * @return the instance
 */
public static synchronized UnsupportedDurationField getInstance(DurationFieldType type) {
  UnsupportedDurationField field;
  if (cCache == null) {
    cCache = new HashMap<DurationFieldType, UnsupportedDurationField>(7);
    field = null;
  } else {
    field = cCache.get(type);
  }
  if (field == null) {
    field = new UnsupportedDurationField(type);
    cCache.put(type, field);
  }
  return field;
}

代码示例来源:origin: JodaOrg/joda-time

/**
 * Gets an instance of UnsupportedDurationField for a specific named field.
 * The returned instance is cached.
 * 
 * @param type  the type to obtain
 * @return the instance
 */
public static synchronized UnsupportedDurationField getInstance(DurationFieldType type) {
  UnsupportedDurationField field;
  if (cCache == null) {
    cCache = new HashMap<DurationFieldType, UnsupportedDurationField>(7);
    field = null;
  } else {
    field = cCache.get(type);
  }
  if (field == null) {
    field = new UnsupportedDurationField(type);
    cCache.put(type, field);
  }
  return field;
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Gets an instance of UnsupportedDurationField for a specific named field.
 * The returned instance is cached.
 * 
 * @param type  the type to obtain
 * @return the instance
 */
public static synchronized UnsupportedDurationField getInstance(DurationFieldType type) {
  UnsupportedDurationField field;
  if (cCache == null) {
    cCache = new HashMap<DurationFieldType, UnsupportedDurationField>(7);
    field = null;
  } else {
    field = cCache.get(type);
  }
  if (field == null) {
    field = new UnsupportedDurationField(type);
    cCache.put(type, field);
  }
  return field;
}

代码示例来源:origin: Nextdoor/bender

/**
 * Gets an instance of UnsupportedDurationField for a specific named field.
 * The returned instance is cached.
 * 
 * @param type  the type to obtain
 * @return the instance
 */
public static synchronized UnsupportedDurationField getInstance(DurationFieldType type) {
  UnsupportedDurationField field;
  if (cCache == null) {
    cCache = new HashMap<DurationFieldType, UnsupportedDurationField>(7);
    field = null;
  } else {
    field = cCache.get(type);
  }
  if (field == null) {
    field = new UnsupportedDurationField(type);
    cCache.put(type, field);
  }
  return field;
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

/**
 * Gets an instance of UnsupportedDurationField for a specific named field.
 * The returned instance is cached.
 * 
 * @param type  the type to obtain
 * @return the instance
 */
public static synchronized UnsupportedDurationField getInstance(DurationFieldType type) {
  UnsupportedDurationField field;
  if (cCache == null) {
    cCache = new HashMap<DurationFieldType, UnsupportedDurationField>(7);
    field = null;
  } else {
    field = cCache.get(type);
  }
  if (field == null) {
    field = new UnsupportedDurationField(type);
    cCache.put(type, field);
  }
  return field;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.joda-time

/**
 * Gets an instance of UnsupportedDurationField for a specific named field.
 * The returned instance is cached.
 * 
 * @param type  the type to obtain
 * @return the instance
 */
public static synchronized UnsupportedDurationField getInstance(DurationFieldType type) {
  UnsupportedDurationField field;
  if (cCache == null) {
    cCache = new HashMap<DurationFieldType, UnsupportedDurationField>(7);
    field = null;
  } else {
    field = cCache.get(type);
  }
  if (field == null) {
    field = new UnsupportedDurationField(type);
    cCache.put(type, field);
  }
  return field;
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Gets an instance of UnsupportedDurationField for a specific named field.
 * The returned instance is cached.
 * 
 * @param type  the type to obtain
 * @return the instance
 */
public static synchronized UnsupportedDurationField getInstance(DurationFieldType type) {
  UnsupportedDurationField field;
  if (cCache == null) {
    cCache = new HashMap<DurationFieldType, UnsupportedDurationField>(7);
    field = null;
  } else {
    field = cCache.get(type);
  }
  if (field == null) {
    field = new UnsupportedDurationField(type);
    cCache.put(type, field);
  }
  return field;
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/**
 * Gets an instance of UnsupportedDurationField for a specific named field.
 * The returned instance is cached.
 * 
 * @param type  the type to obtain
 * @return the instance
 */
public static synchronized UnsupportedDurationField getInstance(DurationFieldType type) {
  UnsupportedDurationField field;
  if (cCache == null) {
    cCache = new HashMap<DurationFieldType, UnsupportedDurationField>(7);
    field = null;
  } else {
    field = cCache.get(type);
  }
  if (field == null) {
    field = new UnsupportedDurationField(type);
    cCache.put(type, field);
  }
  return field;
}

代码示例来源:origin: redfish64/TinyTravelTracker

/**
 * Gets an instance of UnsupportedDurationField for a specific named field.
 * The returned instance is cached.
 * 
 * @param type  the type to obtain
 * @return the instance
 */
public static synchronized UnsupportedDurationField getInstance(DurationFieldType type) {
  UnsupportedDurationField field;
  if (cCache == null) {
    cCache = new HashMap<DurationFieldType, UnsupportedDurationField>(7);
    field = null;
  } else {
    field = cCache.get(type);
  }
  if (field == null) {
    field = new UnsupportedDurationField(type);
    cCache.put(type, field);
  }
  return field;
}

代码示例来源:origin: org.joda/com.springsource.org.joda.time

/**
 * Gets an instance of UnsupportedDurationField for a specific named field.
 * The returned instance is cached.
 * 
 * @param type  the type to obtain
 * @return the instance
 */
public static synchronized UnsupportedDurationField getInstance(DurationFieldType type) {
  UnsupportedDurationField field;
  if (cCache == null) {
    cCache = new HashMap(7);
    field = null;
  } else {
    field = (UnsupportedDurationField) cCache.get(type);
  }
  if (field == null) {
    field = new UnsupportedDurationField(type);
    cCache.put(type, field);
  }
  return field;
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * Gets an instance of UnsupportedDurationField for a specific named field.
 * The returned instance is cached.
 * 
 * @param type  the type to obtain
 * @return the instance
 */
public static synchronized UnsupportedDurationField getInstance(DurationFieldType type) {
  UnsupportedDurationField field;
  if (cCache == null) {
    cCache = new HashMap<DurationFieldType, UnsupportedDurationField>(7);
    field = null;
  } else {
    field = cCache.get(type);
  }
  if (field == null) {
    field = new UnsupportedDurationField(type);
    cCache.put(type, field);
  }
  return field;
}

相关文章