Project

General

Profile

« Previous | Next » 

Revision 3be6ef3e

Added by Niels Hoffmann over 13 years ago

performed javacscript:fix and worked on documentation

View differences:

taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/model/TimeHelper.java
12 12
import eu.etaxonomy.cdm.model.common.TimePeriod;
13 13

  
14 14
/**
15
 * <p>TimeHelper class.</p>
16
 *
15 17
 * @autor p.ciardelli
16 18
 * @author n.hoffmann
17 19
 * @created 18.03.2009
......
19 21
 */
20 22
public class TimeHelper {
21 23
	/**
22
	 * Converts a <code>String</code> whose format is either a valid year 
23
	 * or two valid years with the format "XXXX-XXXX" into a TimePeriod. 
24
	 * Converts a <code>String</code> whose format is either a valid year
25
	 * or two valid years with the format "XXXX-XXXX" into a TimePeriod.
24 26
	 *
25 27
	 * @see #getValidYear(String yearStr)
26
	 * @param refYear
27
	 * @return
28
	 * @throws NumberFormatException
28
	 * @param refYear a {@link java.lang.String} object.
29
	 * @throws java.lang.NumberFormatException if any.
30
	 * @return a {@link eu.etaxonomy.cdm.model.common.TimePeriod} object.
29 31
	 */
30 32
	public static TimePeriod convertTimePeriod(String refYear) throws NumberFormatException {
31 33
		
......
57 59
	/**
58 60
	 * Checks whether a <code>String</code> is a valid year between
59 61
	 * 1750 and 2030. Throws a <code>NumberFormatException</code> if not.
60
	 * 
61
	 * @param yearStr
62
	 * @return
63
	 * @throws NumberFormatException
62
	 *
63
	 * @param yearStr a {@link java.lang.String} object.
64
	 * @throws java.lang.NumberFormatException if any.
65
	 * @return a {@link java.lang.Integer} object.
64 66
	 */
65 67
	public static Integer getValidYear(String yearStr) throws NumberFormatException {
66 68
		

Also available in: Unified diff