public class WorkDayAdjuster
extends java.lang.Object
Constructor and Description |
---|
WorkDayAdjuster() |
Modifier and Type | Method and Description |
---|---|
java.util.Calendar |
adjust(java.util.Calendar calendar)
Adjust a Calendar value so that it will apply only to working days,
taking the current moment as a starting date
|
java.util.Calendar |
adjust(java.util.Calendar startDate,
java.util.Calendar endDate)
Adjust a Calendar value so that it will apply only to working days
|
javax.xml.datatype.Duration |
adjust(java.util.Calendar startDate,
javax.xml.datatype.Duration duration)
Adjust a Duration value so that it will apply only to working days
|
java.util.Date |
adjust(java.util.Date date)
Adjust a Date value so that it will apply only to working days,
taking the current moment as a starting date
|
java.util.Date |
adjust(java.util.Date start,
java.util.Date end)
Adjust a Date value so that it will apply only to working days
|
javax.xml.datatype.Duration |
adjust(javax.xml.datatype.Duration duration)
Adjust a Duration value so that it will apply only to working days,
taking the current moment as a starting date
|
static void |
main(java.lang.String[] a) |
public javax.xml.datatype.Duration adjust(javax.xml.datatype.Duration duration)
duration
- the value to be adjustedpublic javax.xml.datatype.Duration adjust(java.util.Calendar startDate, javax.xml.datatype.Duration duration)
startDate
- the moment to start the adjustment fromduration
- the value to be adjustedpublic java.util.Calendar adjust(java.util.Calendar calendar)
calendar
- the value to be adjustedpublic java.util.Calendar adjust(java.util.Calendar startDate, java.util.Calendar endDate)
startDate
- the moment to start the adjustment fromendDate
- the value to be adjustedpublic java.util.Date adjust(java.util.Date date)
date
- the value to be adjustedpublic java.util.Date adjust(java.util.Date start, java.util.Date end)
start
- the moment to start the adjustment fromend
- the value to be adjustedpublic static void main(java.lang.String[] a)
Copyright © 2004-2014 The YAWL Foundation.