gpt4 book ai didi

org.jfree.data.time.Year.getYear()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 06:18:49 28 4
gpt4 key购买 nike

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

Year.getYear介绍

[英]Returns the year.
[中]返回年份。

代码示例

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

result = this.year - y.getYear();

代码示例来源:origin: jfree/jfreechart

result = this.year - y.getYear();

代码示例来源:origin: jfree/jfreechart

/**
 * Constructs a new month instance.
 *
 * @param month  the month (in the range 1 to 12).
 * @param year  the year.
 */
public Month(int month, Year year) {
  if ((month < 1) || (month > 12)) {
    throw new IllegalArgumentException("Month outside valid range.");
  }
  this.month = month;
  this.year = year.getYear();
  peg(Calendar.getInstance());
}

代码示例来源:origin: jfree/jfreechart

/**
 * Constructs a new quarter.
 *
 * @param quarter  the quarter (1 to 4).
 * @param year  the year (1900 to 9999).
 */
public Quarter(int quarter, Year year) {
  if ((quarter < FIRST_QUARTER) || (quarter > LAST_QUARTER)) {
    throw new IllegalArgumentException("Quarter outside valid range.");
  }
  this.year = (short) year.getYear();
  this.quarter = (byte) quarter;
  peg(Calendar.getInstance());
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Constructs a new month instance.
 *
 * @param month  the month (in the range 1 to 12).
 * @param year  the year.
 */
public Month(int month, Year year) {
  if ((month < 1) || (month > 12)) {
    throw new IllegalArgumentException("Month outside valid range.");
  }
  this.month = month;
  this.year = year.getYear();
  peg(Calendar.getInstance());
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Constructs a new quarter.
 *
 * @param quarter  the quarter (1 to 4).
 * @param year  the year (1900 to 9999).
 */
public Quarter(int quarter, Year year) {
  if ((quarter < FIRST_QUARTER) || (quarter > LAST_QUARTER)) {
    throw new IllegalArgumentException("Quarter outside valid range.");
  }
  this.year = (short) year.getYear();
  this.quarter = (byte) quarter;
  peg(Calendar.getInstance());
}

代码示例来源:origin: jfree/jfreechart

/**
 * Creates a time period representing the week in the specified year.
 *
 * @param week  the week (1 to 53).
 * @param year  the year (1900 to 9999).
 */
public Week(int week, Year year) {
  if ((week < FIRST_WEEK_IN_YEAR) && (week > LAST_WEEK_IN_YEAR)) {
    throw new IllegalArgumentException(
        "The 'week' argument must be in the range 1 - 53.");
  }
  this.week = (byte) week;
  this.year = (short) year.getYear();
  peg(Calendar.getInstance());
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Creates a time period representing the week in the specified year.
 *
 * @param week  the week (1 to 53).
 * @param year  the year (1900 to 9999).
 */
public Week(int week, Year year) {
  if ((week < FIRST_WEEK_IN_YEAR) && (week > LAST_WEEK_IN_YEAR)) {
    throw new IllegalArgumentException(
        "The 'week' argument must be in the range 1 - 53.");
  }
  this.week = (byte) week;
  this.year = (short) year.getYear();
  peg(Calendar.getInstance());
}

代码示例来源:origin: jfree/jfreechart

result = this.year - w.getYear().getYear();
if (result == 0) {
  result = this.week - w.getWeek();

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

result = this.year - w.getYear().getYear();
if (result == 0) {
  result = this.week - w.getWeek();

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