⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forkassociation.java

📁 First of all, the Applet-phone is a SIP User-Agent with audio and text messaging capabilities. But
💻 JAVA
字号:
/* * ForkAssociation.java * * Created on September 25, 2003, 2:38 PM */package gov.nist.security.bcs.wrapper;import java.util.*;/** * This class represents an association between all the callee and the number of dialog already created * @author  DERUELLE Jean */public class ForkAssociation {    /**number of dialog already created*/    private int numberOfFork = 0;    /**list of callees*/    private Vector calleeList = null;        /** Creates a new instance of ForkAssociation */    public ForkAssociation() {        calleeList=new Vector();        numberOfFork = 1;    }    /** Creates a new instance of ForkAssociation with a callee to put in the list of callees     * @param callee - the callee to add     */    public ForkAssociation(String callee) {        calleeList=new Vector();        calleeList.addElement(callee);                numberOfFork = 1;    }    /**     * Retrieve the number of dialog already created     * @return the number of dialog already created     */    public int getNumberOfFork() {        return numberOfFork;    }    /**     * Check if a callee is already in the list of callees     * @param callee - the callee to find      * @return true if the calle is present in the list     */    public boolean findCallee(String callee) {        if(calleeList==null || calleeList.size()<=0)            return false;        else{            for(int i=0;i<calleeList.size();i++){                if(((String)calleeList.elementAt(i)).equals(callee))                    return true;            }        }        return false;    }    /**     * Add a new callee to the list and so a new dialog     * @param callee - the new callee     */    public void addFork(String callee) {        calleeList.addElement(callee);        numberOfFork++;    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -