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

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

?? record.java

?? Short Message Peer to Peer
?? JAVA
字號:
/*
 * Copyright (c) 1996-2001
 * Logica Mobile Networks Limited
 * All rights reserved.
 *
 * This software is distributed under Logica Open Source License Version 1.0
 * ("Licence Agreement"). You shall use it and distribute only in accordance
 * with the terms of the License Agreement.
 *
 */
package org.smpp.smscsim.util;

import java.util.List;
import java.util.LinkedList;
import java.util.ListIterator;

/**
 * The class <code>Record</code> represents a set of <code>Attribute</code>s.
 * It's used in <code>Table</code> class. It can represent various types of
 * data, e.g. user settings, config parameters etc. When used in
 * <code>Table</code>, different records might have different attributes
 * -- attributes with different names.
 *
 * @author Logica Mobile Networks SMPP Open Source Team
 * @version $Revision: 1.2 $
 * @see Table
 * @see Attribute
 */
public class Record {
	/**
	 * The list of the attributes of this record.
	 */
	private List attributes = new LinkedList();

	/**
	 * Only default constructor present -- the record is empty by default
	 * (doesn't contain any attributes).
	 */
	public Record() {
	}

	/**
	 * Sets value of the attribute with given name to given value.
	 * @param name the name (key) of the attribute to set
	 * @param value the new value of the attribute
	 * @see Attribute
	 */
	public synchronized void set(String name, String value) {
		Attribute attr = get(name);
		if (attr == null) {
			attr = new Attribute(name);
			attributes.add(attr);
		}
		attr.setValue(value);
	}

	/**
	 * Adds another attribute to the current record. If the attribute is
	 * already present in the record, replaces the value of the existing
	 * attribute with the value of the provided attribute.
	 * Note that this function makes a copy of the provided atribute.
	 * @param attr the new attribute
	 * @see Attribute
	 */
	public synchronized void add(Attribute attr) {
		Attribute existing = get(attr.getName());
		if (existing != null) {
			existing.setValue(attr.getValue());
		} else {
			attributes.add(new Attribute(attr.getName(), attr.getValue()));
		}
	}

	/**
	 * Finds an attribute with given name and returns it.
	 * If none is found, returns null.
	 * @param name the name of the attribute to return
	 * @return the attribute whose key is equal to the provided key
	 * @see Attribute
	 */
	public synchronized Attribute get(String name) {
		Attribute attr;
		ListIterator iter = attributes.listIterator(0);
		while (iter.hasNext()) {
			attr = (Attribute) iter.next();
			if (attr.nameEquals(name)) {
				return attr;
			}
		}
		return null;
	}

	/**
	 * Returns the value of the attribute with given name.
	 * If the attribute is not present in the record, null is
	 * returned.
	 * @param name the name of the attribute to return the value of
	 * @return the value of the atrribute
	 * @see Attribute
	 */
	public synchronized String getValue(String name) {
		Attribute attr = get(name);
		if (attr != null) {
			return attr.getValue();
		} else {
			return null;
		}
	}

	/**
	 * Return's the <code>i</code>th attribute from the record.
	 * The index must be in range <code>0</code> - <code>count()-1</code>.
	 * This is usefull for outputing the list of all attributes of the record
	 * in some way.
	 * @param i the index of the attribute
	 * @return the attribute on the given position
	 * @see #get(String)
	 * @see Attribute
	 */
	public Attribute get(int i) {
		return (Attribute) attributes.get(i);
	}

	/**
	 * Returns the count of attributes actually present in the record.
	 * Useful in conjuction with <code>get(int)</code>.
	 * @return count of the attributes
	 * @see #get(int)
	 */
	public int count() {
		return attributes.size();
	}

	/**
	 * Removes an attribute with given name from the record.
	 * If the attribute isn't found, nothing will happen.
	 * @param name the name of attribute to remove
	 */
	public synchronized void remove(String name) {
		Attribute toRemove = get(name);
		if (toRemove != null) {
			attributes.remove(toRemove);
		}
	}
}
/*
 * $Log: Record.java,v $
 * Revision 1.2  2006/03/09 16:24:15  sverkera
 * Removed compiler and javadoc warnings
 *
 * Revision 1.1  2003/07/23 00:28:39  sverkera
 * Imported
 *
 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区三区四区在线观看| 亚洲欧美日韩在线| 欧美日韩成人综合| 91久久精品一区二区二区| 成人黄色一级视频| 成人av免费在线播放| 91麻豆精品国产91久久久更新时间| 99re8在线精品视频免费播放| 国产精品一区二区无线| 国产剧情一区二区三区| 九一九一国产精品| 国产一区二区视频在线| 国产一区二区三区精品视频| 国模娜娜一区二区三区| 国产一区二区电影| 欧美一区二区三区小说| 91精品国产综合久久久蜜臀图片 | 日韩高清不卡在线| 婷婷综合在线观看| 久草在线在线精品观看| 国产激情精品久久久第一区二区| 懂色av一区二区在线播放| 91热门视频在线观看| 欧洲人成人精品| 一区二区三区国产| 日韩精品亚洲一区| 狠狠色丁香婷综合久久| 成人短视频下载| 在线观看欧美精品| 亚洲精品一区二区三区蜜桃下载 | 成人h动漫精品一区二| av电影天堂一区二区在线观看| 久久一区二区视频| 国产精品久久99| 亚洲mv在线观看| 国产精品18久久久久久久久| 色香色香欲天天天影视综合网| 91精品国产美女浴室洗澡无遮挡| 精品福利一二区| 亚洲免费视频成人| 国产综合久久久久影院| 色婷婷综合久久久中文一区二区 | 欧美三级电影一区| 精品国产人成亚洲区| 亚洲精品国产一区二区精华液| 日本成人中文字幕| 91成人在线精品| 国产亚洲一区二区三区四区| 亚洲成人免费看| 成人福利在线看| 久久蜜桃av一区二区天堂 | 大桥未久av一区二区三区中文| 色综合天天狠狠| 国产日产亚洲精品系列| 婷婷中文字幕综合| 91美女蜜桃在线| 久久久久97国产精华液好用吗| 天堂久久久久va久久久久| 99久久免费国产| 久久久电影一区二区三区| 91蝌蚪porny| 久久精品一区蜜桃臀影院| 日韩黄色免费电影| 91福利视频网站| |精品福利一区二区三区| 国产精品99久久久久久久女警| 制服丝袜亚洲精品中文字幕| 一区二区三区中文在线观看| 国产丶欧美丶日本不卡视频| 日韩精品中午字幕| 免费观看在线综合| 中文文精品字幕一区二区| 全部av―极品视觉盛宴亚洲| 日本乱人伦aⅴ精品| 亚洲婷婷国产精品电影人久久| 国产大陆亚洲精品国产| xnxx国产精品| 久久99久久99小草精品免视看| 91麻豆精品91久久久久同性| 婷婷久久综合九色综合伊人色| 欧洲另类一二三四区| 亚洲一区二区四区蜜桃| 国产色产综合产在线视频| 韩国成人在线视频| 久久综合九色综合97婷婷| 国产一区欧美一区| 日本一区二区动态图| 国产99精品视频| 国产精品成人免费精品自在线观看 | 国产精品久久久久9999吃药| 欧美亚洲精品一区| 亚洲不卡av一区二区三区| 欧美日韩精品二区第二页| 日韩**一区毛片| 精品久久久网站| 国产v日产∨综合v精品视频| 国产精品视频一二三区| 色素色在线综合| 午夜国产不卡在线观看视频| 日韩午夜电影在线观看| 国产福利不卡视频| 国产在线国偷精品免费看| 国产精品狼人久久影院观看方式| 色激情天天射综合网| 蜜桃视频一区二区| 中文字幕va一区二区三区| 91黄视频在线| 精彩视频一区二区三区| 国产精品国产三级国产普通话99| 在线观看日韩电影| 韩国在线一区二区| 亚洲欧美一区二区久久| 日韩免费看网站| 欧美一区二区在线不卡| 国产精品亚洲成人| 亚洲一区二三区| 久久久亚洲精品一区二区三区| 91首页免费视频| 狠狠狠色丁香婷婷综合激情| 亚洲美女屁股眼交| www国产成人免费观看视频 深夜成人网 | 亚洲免费在线观看| 欧美白人最猛性xxxxx69交| 精品国产乱码久久| 欧美婷婷六月丁香综合色| 国产精品18久久久久久vr| 亚洲成a人片综合在线| 中文字幕在线视频一区| 精品国产自在久精品国产| 欧美视频自拍偷拍| 91看片淫黄大片一级在线观看| 免费成人在线播放| 亚洲高清免费视频| 一色桃子久久精品亚洲| 欧美电视剧在线观看完整版| 日本一区二区视频在线| 欧美精品一级二级| 91在线观看下载| 国产成人免费av在线| 蜜桃av噜噜一区| 首页欧美精品中文字幕| 亚洲国产乱码最新视频| 亚洲免费资源在线播放| 国产精品色婷婷久久58| 久久亚洲捆绑美女| 欧美va亚洲va在线观看蝴蝶网| 欧美日韩中文另类| 国产精品情趣视频| 国产丝袜在线精品| 国产午夜亚洲精品理论片色戒| 日韩欧美黄色影院| 日韩欧美一级二级三级| 欧美一级日韩免费不卡| 欧美日韩高清不卡| 欧美卡1卡2卡| 欧美一区二区大片| 日韩免费在线观看| 亚洲精品一区二区三区香蕉| 精品免费一区二区三区| 日韩亚洲电影在线| 亚洲一区二区中文在线| 亚洲女与黑人做爰| 亚洲激情欧美激情| 亚洲大尺度视频在线观看| 亚洲va欧美va人人爽| 亚洲成a人片在线观看中文| 亚洲1区2区3区4区| 男女男精品视频| 精品一区二区久久久| 国产二区国产一区在线观看| 国产乱码一区二区三区| 岛国av在线一区| 在线观看免费亚洲| 日韩一区二区在线观看视频| 亚洲美女免费在线| 日韩国产欧美一区二区三区| 国产综合久久久久影院| 成人一区二区视频| 在线观看国产日韩| 日韩欧美在线一区二区三区| 26uuu精品一区二区在线观看| 国产精品美女一区二区| 一区二区三区高清在线| 美女看a上一区| 成人av中文字幕| 欧美丰满高潮xxxx喷水动漫| 精品国产精品网麻豆系列| 九九视频精品免费| 不卡av电影在线播放| 51久久夜色精品国产麻豆| 国产欧美一区二区在线| 一区二区欧美在线观看| 激情文学综合网| 色久优优欧美色久优优| 欧美精品一区二区三区蜜臀 | 成人va在线观看| 日韩欧美一区二区免费| 中文字幕一区三区| 久久99精品久久久久| 欧美在线观看一二区|