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

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

?? dataelement.java

?? java se平臺藍牙開發的插件 ,包括源碼 根據readme 生成包很多東西可以自己DIY很實用
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
		case UUID:			if (!(value instanceof UUID))				throw new IllegalArgumentException();			break;		case U_INT_8:			if (!(value instanceof byte[]) || ((byte[]) value).length != 8)				throw new IllegalArgumentException();			break;		case U_INT_16:		case INT_16:			if (!(value instanceof byte[]) || ((byte[]) value).length != 16)				throw new IllegalArgumentException();			break;		default:			throw new IllegalArgumentException();		}		this.value = value;		this.valueType = valueType;	}	/*	 * Adds a DataElement to this DATALT or DATSEQ DataElement object. The elem	 * will be added at the end of the list. The elem can be of any DataElement	 * type, i.e., URL, NULL, BOOL, UUID, STRING, DATSEQ, DATALT, and the	 * various signed and unsigned integer types. The same object may be added	 * twice. If the object is successfully added the size of the DataElement is	 * increased by one. Parameters: elem - the DataElement object to add	 * Throws: ClassCastException - if the method is invoked on a DataElement	 * whose type is not DATALT or DATSEQ NullPointerException - if elem is null	 */	public void addElement(DataElement elem) {		if (elem == null)			throw new NullPointerException();		switch (valueType) {		case DATALT:		case DATSEQ:			((Vector) value).addElement(elem);			break;		default:			throw new ClassCastException();		}	}	/*	 * Inserts a DataElement at the specified location. This method can be	 * invoked only on a DATALT or DATSEQ DataElement. elem can be of any	 * DataElement type, i.e., URL, NULL, BOOL, UUID, STRING, DATSEQ, DATALT,	 * and the various signed and unsigned integers. The same object may be	 * added twice. If the object is successfully added the size will be	 * increased by one. Each element with an index greater than or equal to the	 * specified index is shifted upward to have an index one greater than the	 * value it had previously. The index must be greater than or equal to 0 and	 * less than or equal to the current size. Therefore, DATALT and DATSEQ are	 * zero-based objects.	 * 	 * Parameters: elem - the DataElement object to add index - the location at	 * which to add the DataElement Throws: ClassCastException - if the method	 * is invoked on an instance of DataElement whose type is not DATALT or	 * DATSEQ IndexOutOfBoundsException - if index is negative or greater than	 * the size of the DATALT or DATSEQ NullPointerException - if elem is null	 */	public void insertElementAt(DataElement elem, int index) {		if (elem == null)			throw new NullPointerException();		switch (valueType) {		case DATALT:		case DATSEQ:			((Vector) value).insertElementAt(elem, index);			break;		default:			throw new ClassCastException();		}	}	/*	 * Returns the number of DataElements that are present in this DATALT or	 * DATSEQ object. It is possible that the number of elements is equal to	 * zero. Returns: the number of elements in this DATALT or DATSEQ Throws:	 * ClassCastException - if this object is not of type DATALT or DATSEQ	 */	public int getSize() {		switch (valueType) {		case DATALT:		case DATSEQ:			return ((Vector) value).size();		default:			throw new ClassCastException();		}	}	/*	 * Removes the first occurrence of the DataElement from this object. elem	 * may be of any type, i.e., URL, NULL, BOOL, UUID, STRING, DATSEQ, DATALT,	 * or the variously sized signed and unsigned integers. Only the first	 * object in the list that is equal to elem will be removed. Other objects,	 * if present, are not removed. Since this class doesn't override the	 * equals() method of the Object class, the remove method compares only the	 * references of objects. If elem is successfully removed the size of this	 * DataElement is decreased by one. Each DataElement in the DATALT or DATSEQ	 * with an index greater than the index of elem is shifted downward to have	 * an index one smaller than the value it had previously. Parameters: elem -	 * the DataElement to be removed Returns: true if the input value was found	 * and removed; else false Throws: ClassCastException - if this object is	 * not of type DATALT or DATSEQ NullPointerException - if elem is null	 */	public boolean removeElement(DataElement elem) {		if (elem == null)			throw new NullPointerException();		switch (valueType) {		case DATALT:		case DATSEQ:			return ((Vector) value).removeElement(elem);		default:			throw new ClassCastException();		}	}	/*	 * Returns the data type of the object this DataElement represents. Returns:	 * the data type of this DataElement object; the legal return values are:	 * URL, NULL, BOOL, UUID, STRING, DATSEQ, DATALT, U_INT_1, U_INT_2, U_INT_4,	 * U_INT_8, U_INT_16, INT_1, INT_2, INT_4, INT_8, or INT_16	 */	public int getDataType() {		return valueType;	}	/*	 * Returns the value of the DataElement if it can be represented as a long.	 * The data type of the object must be U_INT_1, U_INT_2, U_INT_4, INT_1,	 * INT_2, INT_4, or INT_8. Returns: the value of the DataElement as a long	 * Throws: ClassCastException - if the data type of the object is not	 * U_INT_1, U_INT_2, U_INT_4, INT_1, INT_2, INT_4, or INT_8	 */	public long getLong() {		switch (valueType) {		case U_INT_1:		case U_INT_2:		case U_INT_4:		case INT_1:		case INT_2:		case INT_4:		case INT_8:			return ((Long) value).longValue();		default:			throw new ClassCastException();		}	}	/*	 * Returns the value of the DataElement if it is represented as a boolean.	 * Returns: the boolean value of this DataElement object Throws:	 * ClassCastException - if the data type of this object is not of type BOOL	 */	public boolean getBoolean() {		if (valueType == BOOL)			return ((Boolean) value).booleanValue();		else			throw new ClassCastException();	}	/*	 * Returns the value of this DataElement as an Object. This method returns	 * the appropriate Java object for the following data types: URL, UUID,	 * STRING, DATSEQ, DATALT, U_INT_8, U_INT_16, and INT_16. Modifying the	 * returned Object will not change this DataElement. The following are the	 * legal pairs of data type and Java object type being returned. DataElement	 * Data Type Java Data Type URL java.lang.String UUID javax.bluetooth.UUID	 * STRING java.lang.String DATSEQ java.util.Enumeration DATALT	 * java.util.Enumeration U_INT_8 byte[] of length 8 U_INT_16 byte[] of	 * length 16 INT_16 byte[] of length 16	 * 	 * Returns: the value of this object Throws: ClassCastException - if the	 * object is not a URL, UUID, STRING, DATSEQ, DATALT, U_INT_8, U_INT_16, or	 * INT_16	 */	public Object getValue() {		switch (valueType) {		case URL:		case STRING:		case UUID:		case U_INT_8:		case U_INT_16:		case INT_16:			return value;		case DATSEQ:		case DATALT:			return ((Vector) value).elements();		default:			throw new ClassCastException();		}	}	public String toString() {		switch (valueType) {		case U_INT_1:		case U_INT_2:		case U_INT_4:		case INT_1:		case INT_2:		case INT_4:		case INT_8:			return "0x" + Long.toHexString(((Long) value).longValue());		case BOOL:		case URL:		case STRING:		case UUID:			return value.toString();		case U_INT_8:		case U_INT_16:		case INT_16: {			byte[] b = (byte[]) value;			StringBuffer buf = new StringBuffer();			for (int i = 0; i < b.length; i++) {				buf.append(Integer.toHexString(b[i] >> 4 & 0xf));				buf.append(Integer.toHexString(b[i] & 0xf));			}			return buf.toString();		}		case DATSEQ: {			StringBuffer buf = new StringBuffer("DATSEQ {\n");			for (Enumeration e = ((Vector) value).elements(); e					.hasMoreElements();) {				buf.append(e.nextElement());				buf.append("\n");			}			buf.append("}");			return buf.toString();		}		case DATALT: {			StringBuffer buf = new StringBuffer("DATALT {\n");			for (Enumeration e = ((Vector) value).elements(); e					.hasMoreElements();) {				buf.append(e.nextElement());				buf.append("\n");			}			buf.append("}");			return buf.toString();		}		default:			return "???";		}	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩精品系列| 欧美日韩专区在线| 色老头久久综合| 色域天天综合网| 日韩欧美国产一区二区三区| 日韩欧美中文一区二区| 国产人妖乱国产精品人妖| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 日本久久一区二区| 欧美高清视频一二三区| 国产丝袜在线精品| 亚洲午夜私人影院| 韩国成人精品a∨在线观看| 国产电影一区二区三区| 日韩一区二区不卡| 亚洲三级理论片| 韩国午夜理伦三级不卡影院| 91久久精品网| 中文字幕欧美日韩一区| 亚洲精品欧美激情| 国产精品亚洲人在线观看| 欧美午夜精品免费| 国产精品久久久久久亚洲伦| 日韩av一级片| 99精品1区2区| 国产精品视频在线看| 日韩国产精品91| 在线观看亚洲a| 亚洲国产成人自拍| 国产成人av网站| 欧美日韩一区中文字幕| 中文字幕欧美三区| 激情亚洲综合在线| 7777精品伊人久久久大香线蕉完整版 | 国产精品三级av在线播放| 麻豆精品久久久| 欧美日韩精品高清| 亚洲一区影音先锋| 欧美视频中文字幕| 成人免费一区二区三区在线观看| 国产一区二区毛片| 日韩精品一区二区在线观看| 日韩成人精品视频| 欧美日韩一级片在线观看| 欧美激情综合五月色丁香| 国产91富婆露脸刺激对白| 久久久www成人免费无遮挡大片| 青草av.久久免费一区| 欧美顶级少妇做爰| 日本亚洲电影天堂| 欧美在线视频不卡| 免费看日韩a级影片| 欧美一区二区三区免费大片| 日韩精品福利网| 在线播放国产精品二区一二区四区| 亚洲图片欧美一区| 91精品免费在线观看| 国产精品一区二区在线看| 国产精品久久福利| 欧美美女bb生活片| 国内久久婷婷综合| 亚洲乱码中文字幕| 日韩精品自拍偷拍| 日本高清无吗v一区| 天天综合天天综合色| 国产欧美精品一区| 欧美午夜在线一二页| 韩国三级电影一区二区| 亚洲激情中文1区| 精品国产99国产精品| 色94色欧美sute亚洲线路一ni| 日韩av不卡在线观看| 国产精品久久久久久亚洲伦| 欧美一卡2卡3卡4卡| 色狠狠桃花综合| 国产在线不卡视频| 五月天网站亚洲| 亚洲欧洲日韩在线| 日韩精品中午字幕| 色婷婷久久久综合中文字幕| 麻豆久久久久久| 最新国产精品久久精品| 精品美女被调教视频大全网站| 99精品久久久久久| 国产激情视频一区二区三区欧美| 亚洲综合色噜噜狠狠| 国产精品久久久久婷婷 | 日本久久精品电影| 丁香婷婷综合网| 精品一二三四区| 亚洲va韩国va欧美va精品| 中文字幕色av一区二区三区| 精品国产3级a| 日韩亚洲欧美高清| 欧美性极品少妇| 91麻豆123| av电影在线观看完整版一区二区| 麻豆精品国产传媒mv男同| 亚欧色一区w666天堂| 亚洲另类在线制服丝袜| 中文字幕一区二区三区乱码在线 | 中文字幕日本乱码精品影院| 久久久国产午夜精品 | 欧洲一区二区三区免费视频| 91在线视频播放| 成人动漫中文字幕| 波多野结衣中文一区| 成人手机在线视频| 成人免费精品视频| 成人精品高清在线| 东方欧美亚洲色图在线| 成人精品视频一区| eeuss鲁片一区二区三区在线观看| 国产精品白丝av| 韩国v欧美v亚洲v日本v| 国产精品一区二区三区网站| 国内精品国产成人国产三级粉色| 日韩av一区二区三区四区| 欧美a级理论片| 精品系列免费在线观看| 精品夜夜嗨av一区二区三区| 国内精品伊人久久久久av影院| 麻豆视频观看网址久久| 激情欧美一区二区三区在线观看| 国产精品一色哟哟哟| 丁香婷婷深情五月亚洲| 成人黄色片在线观看| 91色在线porny| 欧美亚洲动漫另类| 91精品国产全国免费观看| 精品国产免费人成在线观看| 国产三级精品三级在线专区| 中文字幕av一区二区三区高 | 久久爱另类一区二区小说| 狠狠色丁香久久婷婷综合_中| 国产高清久久久久| 色女孩综合影院| 欧美高清hd18日本| 国产欧美精品国产国产专区 | 国产日韩精品一区二区三区在线| 亚洲日本韩国一区| 无码av中文一区二区三区桃花岛| 另类调教123区| 国产91精品露脸国语对白| 91丨九色丨蝌蚪富婆spa| 91福利精品第一导航| 日韩午夜在线观看| 中文字幕在线不卡| 日韩av电影免费观看高清完整版在线观看| 激情伊人五月天久久综合| 95精品视频在线| 精品久久久久久亚洲综合网 | 欧美日韩一区二区不卡| 精品国产乱码久久久久久蜜臀| 亚洲色图欧洲色图| 麻豆国产精品官网| 91毛片在线观看| 亚洲精品一区二区三区影院| 亚洲精品网站在线观看| 精品一区二区免费视频| 在线免费不卡电影| 久久精品夜色噜噜亚洲aⅴ| 亚洲成人一二三| av中文字幕在线不卡| 欧美成人一区二区三区片免费| 亚洲免费在线视频| 国产一区欧美一区| 欧美精品在线一区二区三区| 中文字幕av一区 二区| 另类小说综合欧美亚洲| 欧美中文字幕久久| 最新日韩av在线| 国产99精品国产| 亚洲精品在线观看视频| 五月天欧美精品| 在线精品亚洲一区二区不卡| 欧美经典一区二区| 国产一区二区三区高清播放| 欧美男同性恋视频网站| 一区二区三区免费| 9久草视频在线视频精品| 久久久久久久久久久黄色| 麻豆freexxxx性91精品| 精品视频免费在线| 亚洲男人的天堂一区二区 | 国产精品久久久久影院色老大| 精品中文字幕一区二区| 91精品在线免费| 亚洲国产cao| 欧美中文字幕一区| 亚洲福利国产精品| 欧美日韩久久久久久| 一卡二卡欧美日韩| 在线观看日韩毛片| 亚洲综合色视频| 欧美精品123区| 蜜臀久久99精品久久久久久9 | 日本91福利区| 日韩一区二区三区视频| 免费在线观看不卡|