com.sun.syndication.feed.module.base.types
Class YearType

java.lang.Object
  extended by com.sun.syndication.feed.module.base.types.YearType
All Implemented Interfaces:
CloneableType, java.lang.Cloneable

public class YearType
extends java.lang.Object
implements CloneableType

This class represents a simple 4 digit year.

Version:
$Revision: 1.1 $
Author:
Robert "kebernet" Cooper

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

YearType

public YearType(java.lang.String year)
Creates a new year from a string value.

Parameters:
year - String to parse.

YearType

public YearType(java.util.Date date)
Creates a new instance of YearType

Parameters:
date - Date to get the year from.
Method Detail

clone

public java.lang.Object clone()
Duplicates this object.

Specified by:
clone in interface CloneableType
Overrides:
clone in class java.lang.Object
Returns:
Cloned Year.

toString

public java.lang.String toString()
Returns a String representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
Returns a String representation of this object.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.