sos.dated.util
Interface DatedCollections.Action

Enclosing interface:
DatedCollections

public static interface DatedCollections.Action

Action to perform on a dated object at a period when it does not change. Clients can create a (typically anonymous) instance of this interface to encapsulate an action that should be performed on a dated object at certain date ranges. The methods queryAtDates and applyAtDates use this interface.

See Also:
DatedCollections.queryAtDates(sos.dated.util.DatedObject, java.util.Date, java.util.Date, sos.dated.util.DatedCollections.Action), DatedCollections.applyAtDates(sos.dated.util.DatedObject, java.util.Date, java.util.Date, sos.dated.util.DatedCollections.Action)

Method Summary
 void perform(DatedObject datedObject, java.util.Date from, java.util.Date to)
          Carries out an action on the specified dated object during the specified static date range.
 

Method Detail

perform

public void perform(DatedObject datedObject,
                    java.util.Date from,
                    java.util.Date to)
Carries out an action on the specified dated object during the specified static date range. This method is a hook method that is called from queryAtDates and applyAtDates.

Parameters:
datedObject - dated object to perform action on
from - start date (inclusive) of the static range to perform the action
to - end date (exclusive) of the static range to perform the action
See Also:
DatedCollections.queryAtDates(sos.dated.util.DatedObject, java.util.Date, java.util.Date, sos.dated.util.DatedCollections.Action), DatedCollections.applyAtDates(sos.dated.util.DatedObject, java.util.Date, java.util.Date, sos.dated.util.DatedCollections.Action)


Copyright 2003 Side of Software (SOS). All rights reserved.