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 java.util.Collection<OwnedInterval>
combineIntervals(OwnedInterval currInterval, OwnedInterval newInterval)
combineIntervalsprotected OwnedInterval
createInterval(java.util.Date start, java.util.Date end)
createIntervalprotected OwnedIntervalSequence
createTail(OwnedInterval interval)
createTailprotected java.util.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 java.util.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(java.util.Date start, java.util.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 java.util.Collection<OwnedInterval> separateIntervals(OwnedInterval origInterval, OwnedInterval removedInterval)
separateIntervals
- Overrides:
separateIntervals
in classAbstractTimeIntervalSequence<OwnedInterval>
- Parameters:
origInterval
- aTimeInterval
object.removedInterval
- aTimeInterval
object.- Returns:
- a
Collection
object.
-
-