1 |
/* DateTimeSyntax.java -- |
/* DateTimeSyntax.java -- |
2 |
Copyright (C) 2003 Free Software Foundation, Inc. |
Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
41 |
import java.util.Date; |
import java.util.Date; |
42 |
|
|
43 |
/** |
/** |
44 |
* @author Michael Koch |
* <code>DateTimeSyntax</code> is the abstract base class of all attribute |
45 |
|
* classes having a date and a time as value. |
46 |
|
* |
47 |
|
* @author Michael Koch (konqueror@gmx.de) |
48 |
*/ |
*/ |
49 |
public abstract class DateTimeSyntax implements Cloneable, Serializable |
public abstract class DateTimeSyntax implements Cloneable, Serializable |
50 |
{ |
{ |
55 |
/** |
/** |
56 |
* Creates a <code>DateTimeSyntax</code> with a given value. |
* Creates a <code>DateTimeSyntax</code> with a given value. |
57 |
* |
* |
58 |
* @param value the value for this syntax |
* @param value the date for this syntax |
59 |
* |
* |
60 |
* @exception NullPointerException if value is null |
* @exception NullPointerException if value is null |
61 |
*/ |
*/ |
70 |
/** |
/** |
71 |
* Returns the date value of this object. |
* Returns the date value of this object. |
72 |
* |
* |
73 |
* @return the date value |
* @return The date value. |
74 |
*/ |
*/ |
75 |
public Date getValue() |
public Date getValue() |
76 |
{ |
{ |
82 |
* |
* |
83 |
* @param obj the object to test |
* @param obj the object to test |
84 |
* |
* |
85 |
* @return True if both objects are equal, false otherwise. |
* @return <code>true</code> if both objects are equal, |
86 |
|
* <code>false</code> otherwise. |
87 |
*/ |
*/ |
88 |
public boolean equals(Object obj) |
public boolean equals(Object obj) |
89 |
{ |
{ |
96 |
/** |
/** |
97 |
* Returns the hashcode for this object. |
* Returns the hashcode for this object. |
98 |
* |
* |
99 |
* @return the hashcode |
* @return The hashcode. |
100 |
*/ |
*/ |
101 |
public int hashCode() |
public int hashCode() |
102 |
{ |
{ |