|
||||||||||
| 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.Year
public class Year
| Constructor Summary | |
|---|---|
Year(Date date)
Construct an object that represents the year containing the passed time point |
|
Year(int year)
Construct an year object given the year number. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
int |
compareTo(Year y)
|
boolean |
equals(Object o)
|
Duration |
getDuration()
Returns the duration of this time interval. |
Day |
getEndDay()
|
Month |
getEndMonth()
|
Date |
getEndTime()
Returns the time point that is the end of this year |
Day |
getStartDay()
|
Month |
getStartMonth()
|
int |
getYear()
Returns the year number. |
int |
hashCode()
|
Collection<Month> |
months()
|
Year |
next()
Returns the year following this |
Year |
previous()
Returns the year preceding this |
static Year |
thisYear()
|
DiscreteRange<Year> |
through(Year 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 Year(Date date)
date - public Year(int year)
year - | Method Detail |
|---|
public static Year thisYear()
public int getYear()
public Year previous()
previous in interface Discrete<Year>previous in class ConventionalTimeIntervalpublic Year next()
next in interface Discrete<Year>next in class ConventionalTimeIntervalpublic Date getEndTime()
getEndTime in class ConventionalTimeIntervalpublic Day getStartDay()
public Day getEndDay()
public Month getStartMonth()
public Month getEndMonth()
public int compareTo(Year y)
compareTo in interface Comparable<Year>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<Month> months()
public DiscreteRange<Year> through(Year end)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||