1 7 package javax.print.attribute.standard; 8 9 import java.util.Date ; 10 import javax.print.attribute.Attribute ; 11 import javax.print.attribute.DateTimeSyntax ; 12 import javax.print.attribute.PrintJobAttribute ; 13 14 36 public final class DateTimeAtCreation extends DateTimeSyntax 37 implements PrintJobAttribute { 38 39 private static final long serialVersionUID = -2923732231056647903L; 40 41 50 public DateTimeAtCreation(Date dateTime) { 51 super (dateTime); 52 } 53 54 73 public boolean equals(Object object) { 74 return(super.equals (object) && 75 object instanceof DateTimeAtCreation ); 76 } 77 78 88 public final Class <? extends Attribute > getCategory() { 89 return DateTimeAtCreation .class; 90 } 91 92 101 public final String getName() { 102 return "date-time-at-creation"; 103 } 104 105 } 106 | Popular Tags |