de.jaret.util.ui.timebars.strategy
Class DefaultIntervalSelectionStrategy

java.lang.Object
  extended by de.jaret.util.ui.timebars.strategy.DefaultIntervalSelectionStrategy
All Implemented Interfaces:
IIntervalSelectionStrategy

public class DefaultIntervalSelectionStrategy
extends java.lang.Object
implements IIntervalSelectionStrategy

Default implementation of the interval selection strategy: use the first in the list.

Version:
$Id: DefaultIntervalSelectionStrategy.java 821 2009-02-04 21:12:16Z kliem $
Author:
kliem

Constructor Summary
DefaultIntervalSelectionStrategy()
           
 
Method Summary
 de.jaret.util.date.Interval selectInterval(java.util.List<de.jaret.util.date.Interval> intervals)
          Chose one of the intervals to be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIntervalSelectionStrategy

public DefaultIntervalSelectionStrategy()
Method Detail

selectInterval

public de.jaret.util.date.Interval selectInterval(java.util.List<de.jaret.util.date.Interval> intervals)
Chose one of the intervals to be used. Chose the first from the list.

Specified by:
selectInterval in interface IIntervalSelectionStrategy
Parameters:
intervals - list of intervals
Returns:
the selected interval


Copyright © 2012. All Rights Reserved.