Package org.opennms.core.utils
Class OwnedIntervalSequence
- java.lang.Object
-
- org.opennms.core.utils.AbstractTimeIntervalSequence<OwnedInterval>
-
- org.opennms.core.utils.OwnedIntervalSequence
-
public class OwnedIntervalSequence extends AbstractTimeIntervalSequence<OwnedInterval>
OwnedIntervalSequence class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description OwnedIntervalSequence()
Constructor for OwnedIntervalSequence.OwnedIntervalSequence(OwnedInterval interval)
Constructor for OwnedIntervalSequence.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<OwnedInterval>
combineIntervals(OwnedInterval currInterval, OwnedInterval newInterval)
combineIntervalsprotected OwnedInterval
createInterval(Date start, Date end)
createIntervalprotected OwnedIntervalSequence
createTail(OwnedInterval interval)
createTailprotected Collection<OwnedInterval>
separateIntervals(OwnedInterval origInterval, OwnedInterval removedInterval)
separateIntervals-
Methods inherited from class org.opennms.core.utils.AbstractTimeIntervalSequence
addAll, addAll, addInterval, bound, bound, getBounds, getEnd, getStart, iterator, removeAll, removeInterval, toString
-
-
-
-
Constructor Detail
-
OwnedIntervalSequence
public OwnedIntervalSequence()
Constructor for OwnedIntervalSequence.
-
OwnedIntervalSequence
public OwnedIntervalSequence(OwnedInterval interval)
Constructor for OwnedIntervalSequence.
- Parameters:
interval
- aOwnedInterval
object.
-
-
Method Detail
-
combineIntervals
protected Collection<OwnedInterval> combineIntervals(OwnedInterval currInterval, OwnedInterval newInterval)
combineIntervals
- Overrides:
combineIntervals
in classAbstractTimeIntervalSequence<OwnedInterval>
- Parameters:
currInterval
- aTimeInterval
object.newInterval
- aTimeInterval
object.- Returns:
- a
Collection
object.
-
createInterval
protected OwnedInterval createInterval(Date start, Date end)
createInterval
- Specified by:
createInterval
in classAbstractTimeIntervalSequence<OwnedInterval>
- Parameters:
start
- aDate
object.end
- aDate
object.- Returns:
- a
TimeInterval
object.
-
createTail
protected OwnedIntervalSequence createTail(OwnedInterval interval)
createTail
- Specified by:
createTail
in classAbstractTimeIntervalSequence<OwnedInterval>
- Parameters:
interval
- aTimeInterval
object.- Returns:
- a
AbstractTimeIntervalSequence
object.
-
separateIntervals
protected Collection<OwnedInterval> separateIntervals(OwnedInterval origInterval, OwnedInterval removedInterval)
separateIntervals
- Overrides:
separateIntervals
in classAbstractTimeIntervalSequence<OwnedInterval>
- Parameters:
origInterval
- aTimeInterval
object.removedInterval
- aTimeInterval
object.- Returns:
- a
Collection
object.
-
-