public abstract class Interval extends Object implements Comparable<Interval>
| Modifier and Type | Class and Description |
|---|---|
static class |
Interval.Side |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Interval o) |
protected void |
computeLength() |
boolean |
equals(Object other) |
Granularity |
getFinishGranularity()
Returns the finish granularity.
|
Unit |
getLengthUnit()
Gets the units of the length.
|
Long |
getMaxFinish()
Gets the maximum finish in the current finish granularity.
|
Long |
getMaximumFinish()
Gets the maximum finish in internal PROTEMPA units.
|
Long |
getMaximumLength()
Gets the maximum length in internal PROTEMPA units.
|
Long |
getMaximumStart()
Gets the maximum start in internal PROTEMPA units.
|
Long |
getMaxLength()
Gets the maximum length in the finest granularity of those defined for
the start and finish.
|
Long |
getMaxStart()
Gets the maximum start in the current start granularity.
|
Long |
getMinFinish()
Gets the minimum finish in the current finish granularity.
|
Long |
getMinimumFinish()
Gets the minimum finish in internal PROTEMPA units.
|
Long |
getMinimumLength()
Gets the minimum length in internal PROTEMPA units.
|
Long |
getMinimumStart()
Gets the minimum start in internal PROTEMPA units.
|
Long |
getMinLength()
Gets the minimum length in the finest granularity of those defined for
the start and finish.
|
Long |
getMinStart()
Gets the minimum start in the current start granularity.
|
Granularity |
getStartGranularity()
Gets the start granularity.
|
int |
hashCode() |
protected void |
init(Long start,
Granularity startGranularity,
Long finish,
Granularity finishGranularity,
Long length,
Unit lengthUnit) |
protected void |
init(Long minStart,
Long maxStart,
Granularity startGranularity,
Long minFinish,
Long maxFinish,
Granularity finishGranularity,
Long minLength,
Long maxLength,
Unit lengthUnit) |
protected void |
initComputed() |
boolean |
isLengthGreaterThan(int duration,
Unit durationUnits) |
boolean |
isLengthLessThan(int duration,
Unit durationUnits) |
Long |
maxLengthIn(Unit unit) |
Long |
minLengthIn(Unit unit) |
String |
toString() |
protected Long[] v
protected void init(Long start, Granularity startGranularity, Long finish, Granularity finishGranularity, Long length, Unit lengthUnit)
protected void init(Long minStart, Long maxStart, Granularity startGranularity, Long minFinish, Long maxFinish, Granularity finishGranularity, Long minLength, Long maxLength, Unit lengthUnit)
protected void initComputed()
throws IllegalArgumentException
IllegalArgumentExceptionprotected void computeLength()
public Long getMinimumStart()
Long.public Long getMaximumStart()
Long.public Long getMinimumFinish()
Long.public Long getMaximumFinish()
Long.public Long getMinimumLength()
Long.public Long getMaximumLength()
Long.public boolean isLengthGreaterThan(int duration,
Unit durationUnits)
public boolean isLengthLessThan(int duration,
Unit durationUnits)
public final int compareTo(Interval o)
compareTo in interface Comparable<Interval>public Long getMinStart()
Long.public Long getMaxStart()
Long.public Granularity getStartGranularity()
Granularity.public Long getMinFinish()
Long.public Long getMaxFinish()
Long.public Granularity getFinishGranularity()
Granularity.public Long getMinLength()
Long.public Long getMaxLength()
Long.Copyright © 2012–2018 Emory University. All rights reserved.