org.opennms.netmgt.config
Class TimeIntervalSequence

java.lang.Object
  extended by org.opennms.netmgt.config.TimeIntervalSequence
Direct Known Subclasses:
OwnedIntervalSequence

public class TimeIntervalSequence
extends Object


Constructor Summary
TimeIntervalSequence()
           
TimeIntervalSequence(TimeInterval interval)
           
 
Method Summary
 void addAll(Collection intervals)
           
 void addAll(TimeIntervalSequence intervals)
           
 void addInterval(TimeInterval interval)
           
 void bound(Date start, Date end)
           
 void bound(TimeInterval interval)
           
protected  Collection combineIntervals(TimeInterval currentInterval, TimeInterval newInterval)
           
protected  TimeInterval createInterval(Date start, Date end)
           
protected  TimeIntervalSequence createTail(TimeInterval interval)
           
 TimeInterval getBounds()
           
 Date getEnd()
           
 Date getStart()
           
 Iterator<TimeInterval> iterator()
           
 void removeAll(TimeIntervalSequence intervals)
           
 void removeInterval(TimeInterval removedInterval)
           
protected  Collection separateIntervals(TimeInterval origInterval, TimeInterval removedInterval)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeIntervalSequence

public TimeIntervalSequence()

TimeIntervalSequence

public TimeIntervalSequence(TimeInterval interval)
Method Detail

iterator

public Iterator<TimeInterval> iterator()

addInterval

public void addInterval(TimeInterval interval)

combineIntervals

protected Collection combineIntervals(TimeInterval currentInterval,
                                      TimeInterval newInterval)

createInterval

protected TimeInterval createInterval(Date start,
                                      Date end)

createTail

protected TimeIntervalSequence createTail(TimeInterval interval)

removeInterval

public void removeInterval(TimeInterval removedInterval)

separateIntervals

protected Collection separateIntervals(TimeInterval origInterval,
                                       TimeInterval removedInterval)

bound

public void bound(Date start,
                  Date end)

bound

public void bound(TimeInterval interval)

getStart

public Date getStart()

getEnd

public Date getEnd()

getBounds

public TimeInterval getBounds()

addAll

public void addAll(TimeIntervalSequence intervals)

addAll

public void addAll(Collection intervals)

removeAll

public void removeAll(TimeIntervalSequence intervals)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009. All Rights Reserved.