< prev index next >
src/java.desktop/share/classes/javax/print/attribute/standard/DateTimeAtCreation.java
Print this page
*** 43,53 ****
* java.util.Calendar Calendar} object and set it to the {@link java.util.Date
* Date} from the DateTimeAtCreation attribute.
* <P>
* <B>IPP Compatibility:</B> The information needed to construct an IPP
* "date-time-at-creation" attribute can be obtained as described above. The
! * category name returned by <CODE>getName()</CODE> gives the IPP attribute
* name.
*
* @author Alan Kaminsky
*/
public final class DateTimeAtCreation extends DateTimeSyntax
--- 43,53 ----
* java.util.Calendar Calendar} object and set it to the {@link java.util.Date
* Date} from the DateTimeAtCreation attribute.
* <P>
* <B>IPP Compatibility:</B> The information needed to construct an IPP
* "date-time-at-creation" attribute can be obtained as described above. The
! * category name returned by {@code getName()} gives the IPP attribute
* name.
*
* @author Alan Kaminsky
*/
public final class DateTimeAtCreation extends DateTimeSyntax
*** 60,70 ****
* java.util.Date Date} value.
*
* @param dateTime {@link java.util.Date Date} value.
*
* @exception NullPointerException
! * (unchecked exception) Thrown if <CODE>dateTime</CODE> is null.
*/
public DateTimeAtCreation(Date dateTime) {
super (dateTime);
}
--- 60,70 ----
* java.util.Date Date} value.
*
* @param dateTime {@link java.util.Date Date} value.
*
* @exception NullPointerException
! * (unchecked exception) Thrown if {@code dateTime} is null.
*/
public DateTimeAtCreation(Date dateTime) {
super (dateTime);
}
*** 72,92 ****
* Returns whether this date-time at creation attribute is equivalent to
* the passed in object. To be equivalent, all of the following conditions
* must be true:
* <OL TYPE=1>
* <LI>
! * <CODE>object</CODE> is not null.
* <LI>
! * <CODE>object</CODE> is an instance of class DateTimeAtCreation.
* <LI>
* This date-time at creation attribute's {@link java.util.Date Date} value
! * and <CODE>object</CODE>'s {@link java.util.Date Date} value are equal.
* </OL>
*
* @param object Object to compare to.
*
! * @return True if <CODE>object</CODE> is equivalent to this date-time
* at creation attribute, false otherwise.
*/
public boolean equals(Object object) {
return(super.equals (object) &&
object instanceof DateTimeAtCreation);
--- 72,92 ----
* Returns whether this date-time at creation attribute is equivalent to
* the passed in object. To be equivalent, all of the following conditions
* must be true:
* <OL TYPE=1>
* <LI>
! * {@code object} is not null.
* <LI>
! * {@code object} is an instance of class DateTimeAtCreation.
* <LI>
* This date-time at creation attribute's {@link java.util.Date Date} value
! * and {@code object}'s {@link java.util.Date Date} value are equal.
* </OL>
*
* @param object Object to compare to.
*
! * @return True if {@code object} is equivalent to this date-time
* at creation attribute, false otherwise.
*/
public boolean equals(Object object) {
return(super.equals (object) &&
object instanceof DateTimeAtCreation);
*** 109,119 ****
/**
* Get the name of the category of which this attribute value is an
* instance.
* <P>
* For class DateTimeAtCreation, the category name is
! * <CODE>"date-time-at-creation"</CODE>.
*
* @return Attribute category name.
*/
public final String getName() {
return "date-time-at-creation";
--- 109,119 ----
/**
* Get the name of the category of which this attribute value is an
* instance.
* <P>
* For class DateTimeAtCreation, the category name is
! * {@code "date-time-at-creation"}.
*
* @return Attribute category name.
*/
public final String getName() {
return "date-time-at-creation";
< prev index next >