|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.feed.module.base.types.YearType
public class YearType
This class represents a simple 4 digit year.
Constructor Summary | |
---|---|
YearType(java.util.Date date)
Creates a new instance of YearType |
|
YearType(java.lang.String year)
Creates a new year from a string value. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Duplicates this object. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
toString()
Returns a String representation of this object. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public YearType(java.lang.String year)
year
- String to parse.public YearType(java.util.Date date)
date
- Date to get the year from.Method Detail |
---|
public java.lang.Object clone()
clone
in interface CloneableType
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |