tapelisttype.java

来自「网格agent平台(GAP ,Grid AgentsPlatform)开发包」· Java 代码 · 共 48 行

JAVA
48
字号
/*
 ****************************************************************************************
 * Copyright ? Giovanni Novelli
 * All Rights Reserved.
 ****************************************************************************************
 *
 * License:      GPL - http://www.gnu.org/copyleft/gpl.html
 *
 * TapeListType.java
 *
 * Created on 22 January 2008, 09.00 by Giovanni Novelli
 *
 * $Id$
 *
 */

package net.sf.gap.xml.types;

import java.util.LinkedList;

/**
 *
 * @author Giovanni Novelli
 */
public class TapeListType {
	private LinkedList<TapeType> items;

	public TapeListType() {
		this.setItems(new LinkedList<TapeType>());
	}

	public TapeListType(LinkedList<TapeType> items) {
		this.setItems(items);
	}

	public boolean addTape(TapeType tape) {
		return this.getItems().add(tape);
	}

	public LinkedList<TapeType> getItems() {
		return items;
	}

	public void setItems(LinkedList<TapeType> items) {
		this.items = items;
	}
}

⌨️ 快捷键说明

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