|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.encapsulate.range.AbstractRange<T>
it.amattioli.encapsulate.range.ContinousRange<T>
it.amattioli.encapsulate.range.GenericContinousRange<Date>
it.amattioli.encapsulate.dates.GenericTimeInterval
public class GenericTimeInterval
Estensione di un range che rappresenta un intervallo di tempo.
| Constructor Summary | |
|---|---|
GenericTimeInterval(ConventionalTimeInterval begin,
ConventionalTimeInterval end)
Costruisce un intervallo di tempo dati il giorno iniziale e finale. |
|
GenericTimeInterval(Date begin,
Date end)
Costruisce un intervallo di tempo dati gli istanti iniziale e finale. |
|
| Method Summary | |
|---|---|
boolean |
after(TimeInterval other)
Verifies if another time interval completely follows this. |
boolean |
before(TimeInterval other)
Verifies if another time interval completely precedes this. |
Duration |
getDuration()
Returns the duration of this time interval. |
Day |
getHighDay()
|
Day |
getLowDay()
|
PhysicalDuration |
getPhysicalDuration()
|
static TimeInterval |
highBoundedInterval(Date end)
Costruisce un intervallo di tempo con un limite superiore ma senza limite inferiore. |
static TimeInterval |
lowBoundedInterval(Date begin)
Costruisce un intervallo di tempo con un limite inferiore ma senza limite superiore. |
protected GenericTimeInterval |
newRange(Date low,
Date high)
Crea un nuovo range compatibile con questo. |
| Methods inherited from class it.amattioli.encapsulate.range.GenericContinousRange |
|---|
getHigh, getLow, isHighBounded, isLowBounded |
| Methods inherited from class it.amattioli.encapsulate.range.ContinousRange |
|---|
abutOn, gap, mergeWith, minus |
| Methods inherited from class it.amattioli.encapsulate.range.AbstractRange |
|---|
contains, equals, hashCode, hasSameHigh, hasSameLow, includes, intersect, overlaps, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.amattioli.encapsulate.dates.TimeInterval |
|---|
includes |
| Methods inherited from interface it.amattioli.encapsulate.range.Range |
|---|
abutOn, contains, gap, getHigh, getLow, hasSameHigh, hasSameLow, intersect, isHighBounded, isLowBounded, mergeWith, minus, overlaps |
| Methods inherited from interface it.amattioli.encapsulate.dates.TemporalExpression |
|---|
includes |
| Constructor Detail |
|---|
public GenericTimeInterval(Date begin,
Date end)
begin - istante iniziale dell'intervalloend - istante finale dell'intervallo
NullPointerException - se almeno uno dei due parametri è nullo
public GenericTimeInterval(ConventionalTimeInterval begin,
ConventionalTimeInterval end)
| Method Detail |
|---|
public static TimeInterval lowBoundedInterval(Date begin)
begin - limite inferiore dell'intervallo
NullPointerException - se il parametro è nullopublic static TimeInterval highBoundedInterval(Date end)
end - limite superiore dell'intervallo
NullPointerException - se il parametro è nullopublic PhysicalDuration getPhysicalDuration()
getPhysicalDuration in interface TimeIntervalpublic Duration getDuration()
TimeInterval
getDuration in interface TimeInterval
protected GenericTimeInterval newRange(Date low,
Date high)
AbstractRange
newRange in class GenericContinousRange<Date>public Day getLowDay()
getLowDay in interface TimeIntervalpublic Day getHighDay()
getHighDay in interface TimeIntervalpublic boolean before(TimeInterval other)
TimeInterval
before in interface TimeIntervalother - the time interval to be checked
public boolean after(TimeInterval other)
TimeInterval
after in interface TimeIntervalother - the time interval to be checked
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||