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

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

?? duration.java

?? linux下編程用 編譯軟件
?? 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一区二区三区免费野_久草精品视频
国产精品日日摸夜夜摸av| 蜜臀av性久久久久蜜臀aⅴ| 亚洲一区在线看| 久久夜色精品国产欧美乱极品| 色偷偷成人一区二区三区91| 精品久久久久久综合日本欧美| 欧美一区二区三区小说| 日韩毛片高清在线播放| 久久超碰97中文字幕| 欧美人与z0zoxxxx视频| 亚洲人成小说网站色在线| 狠狠色丁香婷婷综合久久片| 日本二三区不卡| 一区免费观看视频| 国产成人免费在线观看不卡| 日韩精品中文字幕在线不卡尤物 | 国产成人一级电影| 国产精品一区二区久激情瑜伽| 精品一区二区在线观看| 国产综合色在线| 4438成人网| 久久丝袜美腿综合| 国产精品少妇自拍| 夜夜嗨av一区二区三区四季av| 亚洲成av人片| 99久久久无码国产精品| 欧美激情在线一区二区| 国产乱码字幕精品高清av| 日韩女优av电影在线观看| 日韩avvvv在线播放| 欧美午夜理伦三级在线观看| 欧美一区二区三区在线观看| 国产欧美一区二区三区沐欲| 亚洲视频一区二区在线观看| 国产99久久精品| 欧美视频中文一区二区三区在线观看| 91精品欧美福利在线观看| 夜夜嗨av一区二区三区中文字幕| 日韩影院在线观看| 欧美日韩第一区日日骚| 亚洲成人777| 欧美一级二级三级乱码| 麻豆久久久久久| 久久众筹精品私拍模特| 国产不卡视频在线观看| 亚洲欧洲日韩综合一区二区| www.在线欧美| 亚洲久本草在线中文字幕| 91久久国产综合久久| 亚洲一区二区四区蜜桃| 7777精品伊人久久久大香线蕉| 国产日韩欧美在线一区| 成人黄色av电影| 一区二区三区欧美久久| 欧美丰满嫩嫩电影| 国内成人精品2018免费看| 亚洲国产精品99久久久久久久久| 视频一区二区中文字幕| 精品国产伦一区二区三区观看体验| 一区二区三区丝袜| 欧美精品久久天天躁| 色综合久久中文字幕| 日韩精品电影在线观看| 国产偷国产偷亚洲高清人白洁| 亚洲国产成人av网| 日韩精品资源二区在线| www.久久精品| 日本亚洲一区二区| 国产日韩成人精品| 国产麻豆91精品| 欧美一级免费观看| 五月婷婷另类国产| 久久久影视传媒| 欧美日韩一区二区三区免费看| 亚洲色图第一区| 日韩欧美久久一区| 91网站黄www| 韩日欧美一区二区三区| 一区二区三区欧美久久| 色婷婷香蕉在线一区二区| 免费观看一级特黄欧美大片| 欧洲一区在线电影| 国模冰冰炮一区二区| 亚洲一区二区三区视频在线| 久久久99精品久久| 国产99久久久精品| 欧美优质美女网站| 国产乱子伦一区二区三区国色天香| 日韩一级高清毛片| 麻豆国产欧美一区二区三区| 亚洲欧洲另类国产综合| 国产二区国产一区在线观看 | www.99精品| 韩国女主播一区| 天天做天天摸天天爽国产一区 | a美女胸又www黄视频久久| 日韩国产在线观看一区| 亚洲欧洲国产日本综合| voyeur盗摄精品| 国产一区二区三区在线观看免费视频| 精品国产一区二区三区av性色| 日韩高清在线不卡| 亚洲一区二区三区不卡国产欧美| 欧美在线观看视频一区二区| 国产精品18久久久久| 秋霞电影一区二区| 亚洲国产美国国产综合一区二区| 91精品福利在线| 色综合天天天天做夜夜夜夜做| 亚洲一区二区三区美女| 亚洲日本乱码在线观看| 国产精品无码永久免费888| 99精品在线免费| 午夜视频一区二区三区| 亚洲国产一二三| 精品裸体舞一区二区三区| 粉嫩av一区二区三区粉嫩 | 成人精品gif动图一区| 国产真实乱子伦精品视频| 久久99久久精品| 亚洲天堂免费看| 亚洲伦理在线精品| 亚洲裸体在线观看| 亚洲免费观看在线视频| 欧美精品一二三| 777奇米成人网| 精品日韩99亚洲| 在线影院国内精品| 欧美日韩一区二区不卡| 国产成人av一区| 成人av在线网| 在线看不卡av| 国产成人在线电影| 99久久久久久99| 欧美日韩日日摸| 精品剧情在线观看| 欧美日韩中文字幕一区二区| 国产一区二区0| 成人视屏免费看| 色丁香久综合在线久综合在线观看| 日本不卡不码高清免费观看| 久草精品在线观看| 丝袜脚交一区二区| 国产一区欧美二区| 色综合一个色综合亚洲| 91精品视频网| 色婷婷久久99综合精品jk白丝| 国内精品免费**视频| 成人黄色综合网站| 欧美精品久久99久久在免费线| 99精品桃花视频在线观看| 欧美日韩一区精品| 久久精品日产第一区二区三区高清版 | www.色综合.com| 色老综合老女人久久久| 欧美一级视频精品观看| 国产精品久久久久久久久果冻传媒| 日韩欧美一级精品久久| 欧美日韩在线播放三区| 精品国产一二三| 夜夜夜精品看看| 一区二区高清免费观看影视大全 | 欧美成人性战久久| 国产精品不卡一区| 久久99精品视频| 色素色在线综合| 国产视频911| 日韩高清不卡在线| 在线观看中文字幕不卡| 欧美高清在线一区二区| 免费高清在线一区| 91久久久免费一区二区| 欧美国产欧美亚州国产日韩mv天天看完整| 日韩欧美国产综合在线一区二区三区| 欧美日韩精品综合在线| 国产精品久久久99| 国产乱子伦一区二区三区国色天香| 国产精品夜夜嗨| 日韩一区二区三区高清免费看看| 在线成人午夜影院| 亚洲情趣在线观看| 一区二区不卡在线视频 午夜欧美不卡在| 亚洲欧美日韩综合aⅴ视频| 极品尤物av久久免费看| 7777精品伊人久久久大香线蕉 | 精品毛片乱码1区2区3区 | 国产sm精品调教视频网站| 日韩欧美电影一区| 久久久精品tv| 蜜桃一区二区三区四区| 精品视频1区2区| 亚洲综合丁香婷婷六月香| av成人免费在线观看| 国产人妖乱国产精品人妖| 韩国女主播成人在线| 日韩美女一区二区三区四区| 国产欧美视频一区二区三区| 国产综合色在线视频区| 精品久久久久久最新网址| 国产精品久久久久三级|