|
||||||||||
| 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<Date>
it.amattioli.encapsulate.dates.ConventionalTimeInterval
it.amattioli.encapsulate.dates.Month
public class Month
Rappresenta un arco di tempo corrispondente ad un mese.
| Constructor Summary | |
|---|---|
Month(Date date)
Costruisce un oggetto che rappresenta il mese contenente la data passata come parametro. |
|
Month(int month,
int year)
Costruisce un oggetto mese a partire dal mese e dall'anno. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
int |
compareTo(Month m)
|
Collection<Day> |
days()
|
boolean |
equals(Object o)
|
Duration |
getDuration()
Returns the duration of this time interval. |
Day |
getEndDay()
|
Date |
getEndTime()
Restituisce l'istante di tempo finale di questo intervallo |
Week |
getFirstWeek()
Restituisce la prima settimana che contenga almeno un giorno di questo mese |
Week |
getLastWeek()
Restituisce l'ultima settimana che contenga almeno un giorno di questo mese |
int |
getMonth()
Restituisce il mese dell'anno. |
Day |
getStartDay()
|
int |
getYear()
Restituisce l'anno a cui appartiene questo mese. |
int |
hashCode()
|
Month |
next()
Il mese successivo a questo. |
Month |
previous()
Il mese precedente a questo. |
static Month |
thisMonth()
|
DiscreteRange<Month> |
through(Month end)
|
String |
toString()
|
| Methods inherited from class it.amattioli.encapsulate.dates.ConventionalTimeInterval |
|---|
after, after, before, before, dayIterator, getCalendar, getHigh, getHighDay, getInitTime, getLow, getLowDay, getPhysicalDuration, includes, isHighBounded, isLowBounded, newRange, setCalendar |
| Methods inherited from class it.amattioli.encapsulate.range.ContinousRange |
|---|
abutOn, gap, mergeWith, minus |
| Methods inherited from class it.amattioli.encapsulate.range.AbstractRange |
|---|
contains, hasSameHigh, hasSameLow, intersect, overlaps |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.amattioli.encapsulate.range.Range |
|---|
abutOn, contains, gap, hasSameHigh, hasSameLow, intersect, mergeWith, minus, overlaps |
| Constructor Detail |
|---|
public Month(Date date)
date - la data che dovrà appartenere al mese da costruire
public Month(int month,
int year)
month - una delle costanti della classe Calendar che rappresentano il
mese da costruireyear - l'anno del mese da costruire| Method Detail |
|---|
public static Month thisMonth()
public int getMonth()
public int getYear()
public Month previous()
previous in interface Discrete<Month>previous in class ConventionalTimeIntervalpublic Month next()
next in interface Discrete<Month>next in class ConventionalTimeIntervalpublic Date getEndTime()
ConventionalTimeInterval
getEndTime in class ConventionalTimeIntervalpublic Day getStartDay()
public Day getEndDay()
public Week getFirstWeek()
public Week getLastWeek()
public int compareTo(Month m)
compareTo in interface Comparable<Month>public boolean equals(Object o)
equals in class AbstractRange<Date>public int hashCode()
hashCode in class ConventionalTimeIntervalpublic Object clone()
clone in class Objectpublic String toString()
toString in class AbstractRange<Date>public Duration getDuration()
TimeInterval
getDuration in interface TimeIntervalpublic Collection<Day> days()
public DiscreteRange<Month> through(Month end)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||