?? unboundeddaterange.java
字號:
/* * $RCSfile: UnboundedDateRange.java,v $ * $Revision: 1.1 $ * $Date: 2002/11/20 04:03:17 $ * * Copyright (C) 1999-2002 CoolServlets, Inc. All rights reserved. * * This software is the proprietary information of CoolServlets, Inc. * Use is subject to license terms. */package com.struts2.framework.util;import java.util.Date;/** * */public class UnboundedDateRange implements DateRange { // The "start date" private DateRange lowerBound = null; // The "end date" private DateRange upperBound = null; /** * */ public String getDisplayName() { return "All Data"; } /** * */ public DateRange getUpperBound() { return this.upperBound; } /** * */ public void setUpperBound(DateRange upperBound) { this.upperBound = upperBound; } /** * */ public DateRange getLowerBound() { return this.lowerBound; } /** * */ public void setLowerBound(DateRange lowerBound) { this.lowerBound = lowerBound; } public Date getStartDate(Date date) { if (lowerBound == null) { return null; } else { return lowerBound.getStartDate(date); } } public Date getEndDate(Date date) { if (upperBound == null) { return null; } else { return upperBound.getEndDate(date); } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -