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

📄 paraslist.java

📁 本源码为教学管理信息系统
💻 JAVA
字号:
/* * Created on 2004-10-30 */package com.wygl.page;import java.util.ArrayList;/** *  * <p> * Title: 参数集合类 * </p> * <p> * Description: 封装sql/hql的参数到该集合类,便于处理和传递 * </p> */public class ParasList extends ArrayList {	/**	 * 在指定位置添加一个参数对象	 * 	 * @param index:参数的索引值	 * @param p:需要加入的参数对象	 */	public void addParas(int index, Paras p) {		super.add(index, p);	}	/**	 * 在集合的最后位置添加一个参数对象	 * 	 * @param p:需要加入的参数对象	 */	public void addParas(Paras p) {		super.add(p);	}	/**	 * 取得指定位置的参数对象	 * 	 * @param index:参数的索引值	 * @return:参数对象	 */	public Paras getParas(int index) {		return (Paras) super.get(index);	}	/**	 * 取得指定参数的索引	 * 	 * @param p:参数对象	 * @return:参数索引	 */	public int indexofParas(Paras p) {		return super.indexOf(p);	}	/**	 * 从集合中去掉一个指定的参数对象	 * 	 * @param index:参数索引	 */	public void removeParas(int index) {		super.remove(index);	}}

⌨️ 快捷键说明

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