亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? duration.java

?? gcc的組建
?? JAVA
字號:
/* Duration.java --    Copyright (C) 2004, 2005  Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package javax.xml.datatype;import java.math.BigDecimal;import java.util.Calendar;import java.util.Date;import java.util.GregorianCalendar;import javax.xml.datatype.DatatypeConstants;import javax.xml.namespace.QName;/** * An immutable time space as specified in XML Schema 1.0. * * @author (a href='mailto:dog@gnu.org'>Chris Burdess</a) * @since 1.3 */public abstract class Duration{  /**   * Returns the name of the XML Schema data type this value maps to.   */  public QName getXMLSchemaType()  {    int state = 0;    state |= isSet(DatatypeConstants.YEARS) ? 32 : 0;    state |= isSet(DatatypeConstants.MONTHS) ? 16 : 0;    state |= isSet(DatatypeConstants.DAYS) ? 8 : 0;    state |= isSet(DatatypeConstants.HOURS) ? 4 : 0;    state |= isSet(DatatypeConstants.MINUTES) ? 2 : 0;    state |= isSet(DatatypeConstants.SECONDS) ? 1 : 0;    switch (state)      {      case 63:        return DatatypeConstants.DURATION;      case 15:        return DatatypeConstants.DURATION_DAYTIME;      case 48:        return DatatypeConstants.DURATION_YEARMONTH;      default:        throw new IllegalStateException();      }  }  /**   * Returns the sign of this value.   */  public abstract int getSign();  /**   * Returns the years in this duration as an int, or 0 if not present.   */  public int getYears()  {    Number val = getField(DatatypeConstants.YEARS);    return (val == null) ? 0 : val.intValue();  }    /**   * Returns the months in this duration as an int, or 0 if not present.   */  public int getMonths()  {    Number val = getField(DatatypeConstants.MONTHS);    return (val == null) ? 0 : val.intValue();  }    /**   * Returns the days in this duration as an int, or 0 if not present.   */  public int getDays()  {    Number val = getField(DatatypeConstants.DAYS);    return (val == null) ? 0 : val.intValue();  }    /**   * Returns the hours in this duration as an int, or 0 if not present.   */  public int getHours()  {    Number val = getField(DatatypeConstants.HOURS);    return (val == null) ? 0 : val.intValue();  }    /**   * Returns the minutes in this duration as an int, or 0 if not present.   */  public int getMinutes()  {    Number val = getField(DatatypeConstants.MINUTES);    return (val == null) ? 0 : val.intValue();  }    /**   * Returns the seconds in this duration as an int, or 0 if not present.   */  public int getSeconds()  {    Number val = getField(DatatypeConstants.SECONDS);    return (val == null) ? 0 : val.intValue();  }  /**   * Returns the duration length in milliseconds.   * Because the length of a month or year may vary depending on the year,   * the <code>startInstant</code> parameter is used to specify the duration   * offset.   */  public long getTimeInMillis(Calendar startInstant)  {    Calendar cal = (Calendar) startInstant.clone();    long t1 = cal.getTimeInMillis();    addTo(cal);    long t2 = cal.getTimeInMillis();    return t2 - t1;  }  /**   * Returns the duration length in milliseconds.   * Because the length of a month or year may vary depending on the year,   * the <code>startInstant</code> parameter is used to specify the duration   * offset.   */  public long getTimeInMillis(Date startInstant)  {    Date date = (Date) startInstant.clone();    long t1 = date.getTime();    addTo(date);    long t2 = date.getTime();    return t2 - t1;  }  /**   * Returns the value of the specified field, or <code>null</code> if the   * field is undefined.   */  public abstract Number getField(DatatypeConstants.Field field);  /**   * Indicates whether the specified field is set.   */  public abstract boolean isSet(DatatypeConstants.Field field);  /**   * Returns the result of adding the specified duration to this duration.   */  public abstract Duration add(Duration rhs);  /**   * Adds this duration to the specified calendar.   */  public abstract void addTo(Calendar calendar);  /*{    switch (getSign())      {      case -1:        calendar.add(Calendar.YEAR, -getYears());        calendar.add(Calendar.MONTH, -getMonths());        calendar.add(Calendar.DATE, -getDays());        calendar.add(Calendar.HOUR, -getHours());        calendar.add(Calendar.MINUTE, -getMinutes());        calendar.add(Calendar.SECOND, -getSeconds());        break;      case 1:        calendar.add(Calendar.YEAR, getYears());        calendar.add(Calendar.MONTH, getMonths());        calendar.add(Calendar.DATE, getDays());        calendar.add(Calendar.HOUR, getHours());        calendar.add(Calendar.MINUTE, getMinutes());        calendar.add(Calendar.SECOND, getSeconds());      }  }*/    /**   * Adds this duration to the specified date.   */  public void addTo(Date date)  {    Calendar calendar = new GregorianCalendar();    calendar.setTimeInMillis(date.getTime());    addTo(calendar);    date.setTime(calendar.getTimeInMillis());  }  /**   * Returns the result of subtracting the given duration from this   * duration.   */  public Duration subtract(Duration rhs)  {    // TODO    throw new UnsupportedOperationException();  }  /**   * Returns the result of multiplying this duration by the given factor.   */  public Duration multiply(int factor)  {    return multiply(BigDecimal.valueOf((long) factor));  }  /**   * Returns the result of multiplying this duration by the given factor.   */  public Duration multiply(BigDecimal factor)  {    // TODO    throw new UnsupportedOperationException();  }  /**   * Returns the unary negative of this duration.   */  public abstract Duration negate();    /**   * Converts the years and months fields into the days field using a   * specific time instant as the reference point.   */  public abstract Duration normalizeWith(Calendar startTimeInstant);  /**   * Partial order relation comparison with this duration, in accordance   * with XML Schema 1.0 Part 2, Section 3.2.7.6.2.   */  public abstract int compare(Duration duration);  public boolean isLongerThan(Duration duration)  {    // TODO    throw new UnsupportedOperationException();  }  public boolean isShorterThan(Duration duration)  {    // TODO    throw new UnsupportedOperationException();  }  public boolean equals(java.lang.Object duration)  {    // TODO    throw new UnsupportedOperationException();  }    public abstract int hashCode();  /**   * Returns the lexical representation of this duration.   */  public String toString()  {    // TODO    throw new UnsupportedOperationException();  }  }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产乱码一区二区三区| 久久久久久夜精品精品免费| 精品国产91亚洲一区二区三区婷婷| 国产午夜精品美女毛片视频| 午夜久久福利影院| 91丨九色丨黑人外教| 国产婷婷色一区二区三区四区| 午夜欧美电影在线观看| av中文字幕不卡| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 色哟哟日韩精品| 欧美精品一区二区三区很污很色的| 亚洲高清视频中文字幕| 成人午夜视频在线观看| 精品国产麻豆免费人成网站| 香蕉成人伊视频在线观看| 色婷婷综合激情| 亚洲免费视频成人| 91免费视频大全| 国产精品久久久爽爽爽麻豆色哟哟| 精品综合久久久久久8888| 欧美一区二区三区白人| 丝袜美腿成人在线| 欧美高清dvd| 午夜视频久久久久久| 欧美在线影院一区二区| 亚洲精品大片www| 欧美在线一区二区三区| 亚洲美女视频一区| 日本高清无吗v一区| 成人免费视频在线观看| 99视频一区二区三区| 亚洲视频1区2区| 欧美在线观看禁18| 一区二区三区不卡视频在线观看| 色哦色哦哦色天天综合| 亚洲天堂成人在线观看| 91麻豆国产自产在线观看| 一区二区在线观看视频| 欧美日韩国产另类一区| 五月婷婷综合激情| 日韩女同互慰一区二区| 国产伦精品一区二区三区在线观看| 精品女同一区二区| 高清不卡一二三区| 夜夜嗨av一区二区三区网页 | 国产精品一线二线三线| 欧美高清在线精品一区| 白白色亚洲国产精品| 亚洲精品国产成人久久av盗摄| 欧美在线制服丝袜| 麻豆国产精品一区二区三区 | 日韩情涩欧美日韩视频| 国产一区二区三区四区五区美女 | 国产91对白在线观看九色| 中文字幕一区二区三区在线不卡 | 婷婷开心激情综合| 久久久久久97三级| 色综合天天综合网天天看片| 亚洲va韩国va欧美va| 久久免费看少妇高潮| 色婷婷久久久综合中文字幕 | 国产亚洲一本大道中文在线| 91麻豆精品在线观看| 奇米色777欧美一区二区| 国产精品天天摸av网| 欧美午夜片在线看| 国产毛片精品国产一区二区三区| 亚洲品质自拍视频网站| 日韩欧美一级二级三级久久久| 国产91精品一区二区麻豆网站| 亚洲精品国产a| 久久婷婷一区二区三区| 欧美中文一区二区三区| 国产一区二区按摩在线观看| 亚洲午夜国产一区99re久久| 久久精品综合网| 欧美一区二区视频观看视频| 99久久久久久| 国产成人精品免费在线| 日韩影视精彩在线| 亚洲激情在线播放| 久久精品日产第一区二区三区高清版 | 国产成人福利片| 美女视频第一区二区三区免费观看网站| 中文字幕欧美国产| 欧美一区二区三区四区高清| 91蜜桃在线观看| 国产成人精品三级| 久久超级碰视频| 午夜视频一区在线观看| 亚洲欧美一区二区三区孕妇| 久久久精品免费网站| 91精品国产欧美日韩| 欧美综合视频在线观看| 波波电影院一区二区三区| 国产一区二区在线影院| 亚洲777理论| 亚洲高清不卡在线| 亚洲女同一区二区| 国产精品欧美一区二区三区| wwwwxxxxx欧美| 精品免费视频一区二区| 日韩欧美成人一区| 欧美sm极限捆绑bd| 日韩一区二区三| 日韩一区二区影院| 欧美一区二区视频在线观看 | 99视频精品在线| 99久久er热在这里只有精品15| 国产乱一区二区| 国产一区二区三区精品视频| 美女看a上一区| 久久99精品久久久久久久久久久久 | 中文字幕在线不卡视频| 亚洲人成在线播放网站岛国| 亚洲黄色免费电影| 亚洲一区二区四区蜜桃| 亚洲国产精品尤物yw在线观看| 亚洲18女电影在线观看| 首页国产欧美久久| 麻豆精品新av中文字幕| 91碰在线视频| 欧美日韩黄色影视| 日韩视频免费观看高清完整版 | 国产麻豆91精品| 国产不卡视频在线观看| 99久久夜色精品国产网站| 91欧美一区二区| 337p亚洲精品色噜噜| 日韩免费成人网| 国产精品青草综合久久久久99| 亚洲免费色视频| 日韩av一级电影| 国产91色综合久久免费分享| 粉嫩高潮美女一区二区三区| 在线观看欧美精品| 91精品国模一区二区三区| 久久婷婷色综合| 亚洲另类在线制服丝袜| 日日噜噜夜夜狠狠视频欧美人 | 天堂成人国产精品一区| 久久草av在线| 99久久综合狠狠综合久久| 欧美日韩精品是欧美日韩精品| 欧美videossexotv100| 中文字幕一区二区三中文字幕| 亚洲成人av中文| 国产成人av福利| 欧美伊人久久久久久久久影院| 日韩一级大片在线观看| 国产精品毛片久久久久久久| 亚洲二区在线视频| 国产伦精一区二区三区| 欧美色综合网站| 国产天堂亚洲国产碰碰| 亚洲成人激情av| 国产精品 欧美精品| 欧美日本韩国一区| 亚洲欧洲美洲综合色网| 美女视频第一区二区三区免费观看网站| 成人va在线观看| 日韩欧美国产精品| 亚洲激情图片小说视频| 国产在线精品视频| 精品1区2区3区| 亚洲欧美在线高清| 韩国三级在线一区| 欧美精品日韩一本| 亚洲精品福利视频网站| 成人免费va视频| 欧美va日韩va| 蜜臀av国产精品久久久久| 日本精品免费观看高清观看| 国产精品区一区二区三区 | 日本亚洲最大的色成网站www| 91亚洲精品久久久蜜桃网站| 久久毛片高清国产| 青青青伊人色综合久久| 欧美日韩五月天| 亚洲成在线观看| 91久久免费观看| 亚洲精品视频在线观看免费| 国产91综合网| 久久精品人人爽人人爽| 国产一区二区三区美女| 精品国产123| 精品一区二区三区不卡| 欧美一区二区黄色| 美女性感视频久久| 欧美一级xxx| 蜜桃视频在线观看一区二区| 欧美色综合网站| 五月婷婷激情综合| 欧美日韩黄色影视| 日韩国产欧美在线观看| 欧美高清www午色夜在线视频| 天天综合日日夜夜精品| 在线播放欧美女士性生活| 亚洲va国产天堂va久久en|