org.opennms.netmgt.config
Class TimeIntervalSequence
java.lang.Object
org.opennms.netmgt.config.TimeIntervalSequence
- Direct Known Subclasses:
- OwnedIntervalSequence
public class TimeIntervalSequence
- extends Object
TimeIntervalSequence
public TimeIntervalSequence()
TimeIntervalSequence
public TimeIntervalSequence(TimeInterval interval)
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.