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

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

?? reference.java

?? 一個關于java 的常用工具包
?? JAVA
字號:
package org.jutil.relation;import java.util.List;import java.util.ArrayList;/** * <p>A class of Relation components for implementing a binding in which the object of * the Reference has a relation with only 1 other object.</p> * * <center><img src="doc-files/Reference.png"/></center> * * <p>In UML this class is used for implementing multiplicity 1:</p> * * <center><img src="doc-files/reference_uml.png"/></center> * * <p>In Java, you get the following situation.</p> * <center><img src="doc-files/reference_java.png"/></center> * * <p>Note that the question mark is represented by a <code>Relation</code> object since * we don't know its multiplicity. The double binding between the <code>Reference</code>  * object and <code>A</code> is made by passing <code>this</code> to the constructor of  * Reference.</p> * * <p>This is actually a lightweight version of the APElement class. * of the <a href="http://www.beedra.org">Beedra</a> framework of Jan Dockx.</p> *  * <p>This class is typically using in the following way. * <pre><code> *public class B { *  public B() { *    _a = new Reference(this); *  } * *  public A getA() { *    return (A)_a.getOtherEnd(); *  } * *  public void setA(A a) { *    _a.connectTo(a == null ? null : a.getBLink()); *  } * *  Reference getALink() { *    return _a; *  } * *  private Reference _a; *} * </code></pre> * * <p>The other class must have a method <code>getBLink()</code>, which returns a  * <a href="Relation.html"><code>Relation</code></a> object that represents the other side * of the bi-directional binding. In case the two classes are not in the same package that means * that <code>getBLink()</code> must be <code>public</code> there, but that is also the case when * not working with these components. Note that if the binding should not be mutable from class  * <code>B</code> the <code>setA()</code> may be removed. Similarly, <code>getALink()</code> may  * be removed if the binding is not mutable from class <code>A</code>.</p> * * @path    $Source: /cvsroot/org-jutil/jutil.org/src/org/jutil/relation/Reference.java,v $ * @version $Revision: 1.6 $ * @date    $Date: 2002/09/07 20:47:41 $ * @state   $State: Exp $ * @author  Marko van Dooren * @release $Name:  $ */public class Reference extends Relation { 	/* The revision of this class */	public final static String CVS_REVISION ="$Revision: 1.6 $"; /*@    @ public invariant getOtherRelation() != null ==>   @                  getOtherRelation().contains(this);   @*/    /**   * Initialize a new Reference for the given object.   * The new Reference will be unconnected.   *   * @param object   *        The object at this side of the binding.   */ /*@   @ public behavior   @   @ pre object != null;   @   @ post getObject() == object;   @ post getOtherRelation() == null;   @*/  public Reference(Object object) {    super(object);  }  /**   * Initialize a new Reference for the given object,   * connected to the given Relation.   *   * @param object   *        The object at this side of the binding.   * @param other   *        The Relation component at the other side of the binding.   */ /*@   @ public behavior   @   @ pre object != null;   @   @ post getObject() == object;   @ post getOtherRelation() == other;   @ post other != null ==> other.contains(this);   @ post other.registered(new ArrayList(), this);   @*/  public Reference(Object object, Relation other) {    super(object);    connectTo(other);  }      /**   * Return the Object at the other end of this double binding.   */ /*@   @ public behavior   @   @ post getOtherRelation() == null ==> \result == null;   @ post getOtherRelation() != null ==> \result == getOtherRelation().getObject();   @*/  public Object getOtherEnd() {    if (getOtherRelation() == null) {        return null;    }    return getOtherRelation().getObject();  } /*@   @ also public behavior   @   @ post \result != null;   @ post getOtherEnd() != null ==> (   @                                 \result.size() == 1 &&   @                                 \result.contains(getOtherEnd())   @                                );   @ post getOtherEnd() == null ==> \result.isEmpty();   @*/  public List getOtherEnds() {    if (getOtherRelation() == null) {        return new ArrayList();    }    ArrayList result = new ArrayList();    result.add(getOtherRelation().getObject());    return result;  }  /**   * Set the other side of this binding.   *   * @param other   *        The new Relation this Reference will be connected to.   */ /*@   @ public behavior   @   @ post registered(\old(getOtherRelations()), other);   @ post other != null ==> other.registered(\old(other.getOtherRelations()), this);   @*/  public void connectTo(Relation other) {    if (other != _other) {      register(other);      if (other != null) {          other.register(this);      }    }  } /*@   @ also public behavior   @   @ post \result == (registered != null ==> contains(registered)) &&   @                 (   @                   (   @                     (oldConnections.size() == 0)   @                   )   @                   ||   @                   (   @                     (oldConnections.size() == 1) &&   @                     (   @                       (oldConnections.get(1) == registered)   @                       ||   @                       (   @                         (! contains((Relation)oldConnections.get(1)))   @                         //(\forall Relation r; r != this;   @                         //   \old(((Relation)oldConnections.get(1)).contains(r)) ==    @                         //   ((Relation)oldConnections.get(1)).contains(r)   @                         //) FIXME   @                       )   @                     )   @                   )   @                 );   @*/  public boolean registered(List oldConnections, Relation registered) {    return (oldConnections != null) &&           (contains(registered)) &&           (             (               (oldConnections.size() == 0)             )             ||             (               (oldConnections.size() == 1) &&               (                 (oldConnections.get(1) == registered)                 ||                 (                   (! contains((Relation)oldConnections.get(1)))                 )               )             )           );  } /*@   @ also public behavior   @   @ post \result == (getOtherRelations().isEmpty()) &&   @                 (   @                   (   @                     (oldConnections.size() == 1) &&   @                     (oldConnections.get(1) == unregistered)   @                   )   @                   ||   @                   (oldConnections.size() == 0)   @                 );   @*/  public boolean unregistered(List oldConnections, Relation unregistered) {    return (oldConnections != null) &&           (getOtherEnds().isEmpty()) &&           (             (               (oldConnections.size() == 1) &&               (oldConnections.get(1) == unregistered)             )             ||             (oldConnections.size() == 0)           );  } /*@   @ also public behavior   @   @ post \result == true;   @*/  protected boolean isValidElement(Relation relation) {    return true;  }  /**   * See superclass   */  protected void unregister(Relation other) {    _other = null;  }  /**   * See superclass   */  protected void register(Relation other) {    if(_other != null) {      _other.unregister(this);    }    _other = other;  }  /**   * return the Relation this Reference belongs to   */  public Relation getOtherRelation() {    return _other;  }    /**   * See superclass.   */  public List getOtherRelations() {    ArrayList result = new ArrayList();    if(_other != null) {      result.add(_other);    }    return result;  }    /**   * The Relation this Reference belongs to   */  private Relation _other;  }/*<copyright>Copyright (C) 1997-2001. This software is copyrighted by the people and entities mentioned after the "@author" tags above, on behalf of the JUTIL.ORG Project. The copyright is dated by the dates after the "@date" tags above. All rights reserved.This software is published under the terms of the JUTIL.ORG SoftwareLicense version 1.1 or later, a copy of which has been included withthis distribution in the LICENSE file, which can also be found athttp://org-jutil.sourceforge.net/LICENSE. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the JUTIL.ORG Software License for more details.For more information, please see http://org-jutil.sourceforge.net/</copyright>*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜桃av一区二区| 欧美国产精品专区| 欧美视频中文一区二区三区在线观看| 成人精品gif动图一区| 国产xxx精品视频大全| 国产99久久久国产精品潘金| 国产成人免费视频一区| 成人av在线看| 色婷婷精品大在线视频| 日韩精品一区在线观看| 国产精品久久久久影院老司 | 国产嫩草影院久久久久| 精品999久久久| 久久久综合激的五月天| 欧美极品xxx| 国产精品初高中害羞小美女文| 中文字幕视频一区| 亚洲最新视频在线播放| 亚洲第一搞黄网站| 精品在线你懂的| 99久久精品一区二区| 色94色欧美sute亚洲线路一久| 欧美另类一区二区三区| 久久先锋影音av| 亚洲色图色小说| 免费国产亚洲视频| 不卡大黄网站免费看| 久久男人中文字幕资源站| 欧美日韩一区二区三区视频| 欧美色窝79yyyycom| 欧美一区二区精美| 国产精品国产三级国产aⅴ入口| 亚洲一区日韩精品中文字幕| 久久精品国产77777蜜臀| 91同城在线观看| 精品国产亚洲在线| 亚洲精品v日韩精品| 狠狠色丁香九九婷婷综合五月| 91麻豆蜜桃一区二区三区| 欧美一区二区在线观看| 国产精品电影一区二区三区| 天堂蜜桃91精品| 不卡影院免费观看| 日韩美女在线视频 | 5566中文字幕一区二区电影| 国产精品一区二区在线观看网站 | 亚洲一区二区三区美女| 麻豆精品一二三| 97成人超碰视| 久久久噜噜噜久久中文字幕色伊伊| 亚洲视频一二区| 国产一区视频在线看| 在线播放视频一区| 中文字幕精品一区| 黄色资源网久久资源365| 欧美日韩中字一区| 亚洲欧美一区二区在线观看| 国产美女视频一区| 欧美一级欧美三级| 午夜精品久久久久久久久| 香蕉成人啪国产精品视频综合网 | 午夜精品久久久久久久| 成人综合婷婷国产精品久久蜜臀| 欧美电影一区二区三区| 亚洲精品视频在线观看网站| 成人午夜免费电影| 国产欧美精品一区二区色综合| 美国三级日本三级久久99| 欧美日韩国产色站一区二区三区| 亚洲欧美日本韩国| 大尺度一区二区| 中文一区在线播放| 国产福利一区二区| 中文字幕精品一区二区三区精品| 精品在线一区二区| 久久久久久一二三区| 韩国欧美国产一区| 国产喂奶挤奶一区二区三区| 韩国欧美国产1区| 国产视频一区不卡| 精品国产免费人成电影在线观看四季 | 国产精品456露脸| 国产色91在线| www.激情成人| 亚洲美女在线一区| 欧美亚洲高清一区| 秋霞成人午夜伦在线观看| 欧美电影免费观看高清完整版在 | 欧美一区三区二区| 极品少妇xxxx精品少妇偷拍| 久久综合九色综合久久久精品综合| 另类的小说在线视频另类成人小视频在线| 日韩欧美综合一区| 国产剧情在线观看一区二区| 国产精品三级在线观看| 色噜噜狠狠色综合中国| 日本人妖一区二区| 国产欧美一区二区三区沐欲| aaa欧美大片| 午夜精品久久久久久久99樱桃| 日韩欧美国产一区在线观看| 国产成人精品1024| 亚洲国产欧美在线| 久久久精品中文字幕麻豆发布| av一区二区久久| 免费在线观看一区| 亚洲婷婷综合久久一本伊一区| 在线观看日韩av先锋影音电影院| 日韩高清不卡一区二区三区| 中文字幕 久热精品 视频在线| 欧美日韩综合不卡| 国产成人午夜视频| 午夜久久久影院| 中文字幕在线一区免费| 日韩一区二区三| 91丨九色丨蝌蚪丨老版| 九九九精品视频| 亚洲一区二区三区四区的| 国产拍揄自揄精品视频麻豆| 在线观看国产一区二区| 国产精品一级片| 日韩福利电影在线观看| 亚洲天堂成人网| 欧美精品一区二区三区四区| 欧美日韩久久久一区| 99久久国产免费看| 国产乱人伦偷精品视频不卡 | 精品午夜一区二区三区在线观看| 亚洲欧美另类图片小说| 2020国产精品久久精品美国| 7777精品伊人久久久大香线蕉经典版下载 | 中文字幕日韩一区二区| 日韩视频一区二区三区在线播放| 一本色道久久综合亚洲aⅴ蜜桃| 久久精品国产99| 午夜欧美电影在线观看| 国产精品美女一区二区| 日韩你懂的在线播放| 3751色影院一区二区三区| 色综合色狠狠综合色| 99久久综合99久久综合网站| 国模娜娜一区二区三区| 热久久一区二区| 日本不卡在线视频| 日韩中文字幕亚洲一区二区va在线 | 婷婷久久综合九色国产成人| 亚洲精品久久久蜜桃| 亚洲色欲色欲www在线观看| 国产午夜精品久久久久久免费视 | 成人午夜精品在线| 国产在线精品一区二区不卡了| 久久草av在线| 激情综合网激情| 国产aⅴ综合色| 成人毛片老司机大片| 99久久国产综合色|国产精品| 国产99一区视频免费| 成人av在线资源| 一本色道久久综合亚洲91| 日本道色综合久久| 欧美调教femdomvk| 日韩一区二区精品在线观看| 日韩欧美国产电影| 久久久www成人免费无遮挡大片| 国产视频一区在线观看| 亚洲欧洲日韩一区二区三区| 亚洲影视在线播放| 日韩激情一二三区| 另类专区欧美蜜桃臀第一页| 国产激情一区二区三区| 粉嫩av一区二区三区| 91蝌蚪国产九色| 欧美精品丝袜久久久中文字幕| 欧美一级黄色片| 国产亚洲一区二区在线观看| 1000部国产精品成人观看| 洋洋成人永久网站入口| 免费久久99精品国产| 懂色av一区二区夜夜嗨| 91久久精品一区二区三| 日韩一级片在线观看| 国产精品视频一区二区三区不卡 | 欧美精选一区二区| 久久嫩草精品久久久精品一| 国产精品电影院| 日韩精品福利网| 成人免费看片app下载| 欧美日韩国产小视频在线观看| 久久综合色天天久久综合图片| 国产精品理论片| 日韩精品成人一区二区在线| 风间由美一区二区av101| 欧美日本在线一区| 国产精品毛片高清在线完整版| 亚洲在线观看免费视频| 国产激情视频一区二区三区欧美| 91久久一区二区| 国产精品天天看| 麻豆91免费看| 欧美亚洲一区二区三区四区|