Side of Software
Dated Collections Library 2.0

sos.dated.util
Interface DatedCollections.Action<D>

Enclosing class:
DatedCollections

public static interface DatedCollections.Action<D>

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, D, D, sos.dated.util.DatedCollections.Action), DatedCollections.applyAtDates(sos.dated.util.DatedObject, D, D, sos.dated.util.DatedCollections.Action)

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

Method Detail

perform

void perform(DatedObject<D> datedObject,
             D from,
             D 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, D, D, sos.dated.util.DatedCollections.Action), DatedCollections.applyAtDates(sos.dated.util.DatedObject, D, D, sos.dated.util.DatedCollections.Action)

Side of Software
Dated Collections Library 2.0

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