Overview | Package | Class | Tree | Deprecated | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.treesched.schedules
Class LastSchedule

    java.lang.Object
      org.treesched.AbstractSchedule
          org.treesched.schedules.LastSchedule

All Implemented Interfaces:
  RefineableSchedule, Schedule, java.io.Serializable

public final class LastSchedule
extends AbstractSchedule
implements java.io.Serializable

This schedule will return it's last due child schedule within the given parent interval.

This would typically be used to return the last working day of the month.

See the test cases for an example.

Author:
  Rob Gordon
See Also:
  Serialized Form

Constructor Summary
`LastSchedule()`

Method Summary
`Interval` | `nextDue(java.util.Date now)` Calculate the next due interval within the given interval.
`java.lang.String` | `toString()` Override toString.

Methods inherited from class org.treesched.AbstractSchedule
`addChildSchedule, getChildSchedule, getLimits, reset, setChildSchedule, setLimits`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### LastSchedule

    public LastSchedule()

Method Detail

### nextDue

    public Interval nextDue(java.util.Date now)

  Calculate the next due interval within the given interval.

  Specified by:
    `nextDue` in interface `Schedule`
  Parameters:
    `now` - The date now.
  Returns:
    The next due interval for the schedule.

### toString

    public java.lang.String toString()

  Override toString.

Overview | Package | Class | Tree | Deprecated | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD