gpt4 book ai didi

org.joda.time.chrono.ZonedChronology.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 23:54:49 27 4
gpt4 key购买 nike

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

ZonedChronology.<init>介绍

[英]Restricted constructor
[中]受限构造函数

代码示例

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

/**
 * Create a ZonedChronology for any chronology, overriding any time zone it
 * may already have.
 *
 * @param base base chronology to wrap
 * @param zone the time zone
 * @throws IllegalArgumentException if chronology or time zone is null
 */
public static ZonedChronology getInstance(Chronology base, DateTimeZone zone) {
  if (base == null) {
    throw new IllegalArgumentException("Must supply a chronology");
  }
  base = base.withUTC();
  if (base == null) {
    throw new IllegalArgumentException("UTC chronology must not be null");
  }
  if (zone == null) {
    throw new IllegalArgumentException("DateTimeZone must not be null");
  }
  return new ZonedChronology(base, zone);
}

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

/**
 * Create a ZonedChronology for any chronology, overriding any time zone it
 * may already have.
 *
 * @param base base chronology to wrap
 * @param zone the time zone
 * @throws IllegalArgumentException if chronology or time zone is null
 */
public static ZonedChronology getInstance(Chronology base, DateTimeZone zone) {
  if (base == null) {
    throw new IllegalArgumentException("Must supply a chronology");
  }
  base = base.withUTC();
  if (base == null) {
    throw new IllegalArgumentException("UTC chronology must not be null");
  }
  if (zone == null) {
    throw new IllegalArgumentException("DateTimeZone must not be null");
  }
  return new ZonedChronology(base, zone);
}

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

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

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

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

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

/**
 * Create a ZonedChronology for any chronology, overriding any time zone it
 * may already have.
 *
 * @param base base chronology to wrap
 * @param zone the time zone
 * @throws IllegalArgumentException if chronology or time zone is null
 */
public static ZonedChronology getInstance(Chronology base, DateTimeZone zone) {
  if (base == null) {
    throw new IllegalArgumentException("Must supply a chronology");
  }
  base = base.withUTC();
  if (base == null) {
    throw new IllegalArgumentException("UTC chronology must not be null");
  }
  if (zone == null) {
    throw new IllegalArgumentException("DateTimeZone must not be null");
  }
  return new ZonedChronology(base, zone);
}

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

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

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

/**
 * Create a ZonedChronology for any chronology, overriding any time zone it
 * may already have.
 *
 * @param base base chronology to wrap
 * @param zone the time zone
 * @throws IllegalArgumentException if chronology or time zone is null
 */
public static ZonedChronology getInstance(Chronology base, DateTimeZone zone) {
  if (base == null) {
    throw new IllegalArgumentException("Must supply a chronology");
  }
  base = base.withUTC();
  if (base == null) {
    throw new IllegalArgumentException("UTC chronology must not be null");
  }
  if (zone == null) {
    throw new IllegalArgumentException("DateTimeZone must not be null");
  }
  return new ZonedChronology(base, zone);
}

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

/**
 * Create a ZonedChronology for any chronology, overriding any time zone it
 * may already have.
 *
 * @param base base chronology to wrap
 * @param zone the time zone
 * @throws IllegalArgumentException if chronology or time zone is null
 */
public static ZonedChronology getInstance(Chronology base, DateTimeZone zone) {
  if (base == null) {
    throw new IllegalArgumentException("Must supply a chronology");
  }
  base = base.withUTC();
  if (base == null) {
    throw new IllegalArgumentException("UTC chronology must not be null");
  }
  if (zone == null) {
    throw new IllegalArgumentException("DateTimeZone must not be null");
  }
  return new ZonedChronology(base, zone);
}

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

/**
 * Create a ZonedChronology for any chronology, overriding any time zone it
 * may already have.
 *
 * @param base base chronology to wrap
 * @param zone the time zone
 * @throws IllegalArgumentException if chronology or time zone is null
 */
public static ZonedChronology getInstance(Chronology base, DateTimeZone zone) {
  if (base == null) {
    throw new IllegalArgumentException("Must supply a chronology");
  }
  base = base.withUTC();
  if (base == null) {
    throw new IllegalArgumentException("UTC chronology must not be null");
  }
  if (zone == null) {
    throw new IllegalArgumentException("DateTimeZone must not be null");
  }
  return new ZonedChronology(base, zone);
}

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

/**
 * Create a ZonedChronology for any chronology, overriding any time zone it
 * may already have.
 *
 * @param base base chronology to wrap
 * @param zone the time zone
 * @throws IllegalArgumentException if chronology or time zone is null
 */
public static ZonedChronology getInstance(Chronology base, DateTimeZone zone) {
  if (base == null) {
    throw new IllegalArgumentException("Must supply a chronology");
  }
  base = base.withUTC();
  if (base == null) {
    throw new IllegalArgumentException("UTC chronology must not be null");
  }
  if (zone == null) {
    throw new IllegalArgumentException("DateTimeZone must not be null");
  }
  return new ZonedChronology(base, zone);
}

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

/**
 * Create a ZonedChronology for any chronology, overriding any time zone it
 * may already have.
 *
 * @param base base chronology to wrap
 * @param zone the time zone
 * @throws IllegalArgumentException if chronology or time zone is null
 */
public static ZonedChronology getInstance(Chronology base, DateTimeZone zone) {
  if (base == null) {
    throw new IllegalArgumentException("Must supply a chronology");
  }
  base = base.withUTC();
  if (base == null) {
    throw new IllegalArgumentException("UTC chronology must not be null");
  }
  if (zone == null) {
    throw new IllegalArgumentException("DateTimeZone must not be null");
  }
  return new ZonedChronology(base, zone);
}

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

/**
 * Create a ZonedChronology for any chronology, overriding any time zone it
 * may already have.
 *
 * @param base base chronology to wrap
 * @param zone the time zone
 * @throws IllegalArgumentException if chronology or time zone is null
 */
public static ZonedChronology getInstance(Chronology base, DateTimeZone zone) {
  if (base == null) {
    throw new IllegalArgumentException("Must supply a chronology");
  }
  base = base.withUTC();
  if (base == null) {
    throw new IllegalArgumentException("UTC chronology must not be null");
  }
  if (zone == null) {
    throw new IllegalArgumentException("DateTimeZone must not be null");
  }
  return new ZonedChronology(base, zone);
}

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

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

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

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

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

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

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

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

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

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

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

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

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

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

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

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com