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

📄 holidaylisttype.java

📁 网格agent平台(GAP ,Grid AgentsPlatform)开发包
💻 JAVA
字号:
/*
 ****************************************************************************************
 * Copyright ? Giovanni Novelli
 * All Rights Reserved.
 ****************************************************************************************
 *
 * License:      GPL - http://www.gnu.org/copyleft/gpl.html
 *
 * HolidayListType.java
 *
 * Created on 22 January 2008, 09.00 by Giovanni Novelli
 *
 * $Id$
 *
 */

package net.sf.gap.xml.types;

import java.util.Date;
import java.util.LinkedList;

/**
 *
 * @author Giovanni Novelli
 */
public class HolidayListType {
	private LinkedList<Date> items;

	public HolidayListType() {
		this.setItems(new LinkedList<Date>());
	}

	public boolean addDate(Date date) {
		return this.getItems().add(date);
	}

	public boolean addCalendarDay(int year, int month, int day) {
		@SuppressWarnings("deprecation")
		Date date = new Date(year, month, day);
		return this.getItems().add(date);
	}

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

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

⌨️ 快捷键说明

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