|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.domain.TimePeriod
net.sourceforge.pebble.domain.Year
public class Year
Represents a blog at a yearly level. This manages a collection of Month instances.
Constructor Summary | |
---|---|
Year(Blog blog,
int year)
Creates a new Year instance for the specified year. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
java.util.List<Month> |
getArchives()
Gets a collection of all Months, to date and in reverse order. |
Month |
getBlogForFirstMonth()
Gets the first Month that actually contains blog entries. |
Month |
getBlogForMonth(int month)
Gets the Month for the specified month. |
Month[] |
getMonths()
Gets a collection of all Months managed by this blog. |
int |
getYear()
Gets an integer representing the year that this yearly blog is for. |
java.lang.String |
toString()
Gets a string representation of this object. |
Methods inherited from class net.sourceforge.pebble.domain.TimePeriod |
---|
getBlog, getDate, setDate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Year(Blog blog, int year)
blog
- the Blog on which this Year is basedyear
- the year that this Year is forMethod Detail |
---|
public int getYear()
public Month getBlogForMonth(int month)
month
- the month as an int
public Month getBlogForFirstMonth()
public Month[] getMonths()
public java.util.List<Month> getArchives()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- the Object to be compared.
java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this Object.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |