1 7 package javax.print.attribute.standard; 8 9 import javax.print.attribute.Attribute ; 10 import javax.print.attribute.IntegerSyntax ; 11 import javax.print.attribute.PrintRequestAttribute ; 12 import javax.print.attribute.PrintJobAttribute ; 13 14 43 public final class JobPriority extends IntegerSyntax 44 implements PrintRequestAttribute , PrintJobAttribute { 45 46 private static final long serialVersionUID = -4599900369040602769L; 47 48 57 public JobPriority(int value) { 58 super (value, 1, 100); 59 } 60 61 80 public boolean equals(Object object) { 81 return (super.equals (object) && object instanceof JobPriority ); 82 } 83 84 93 public final Class <? extends Attribute > getCategory() { 94 return JobPriority .class; 95 } 96 97 105 public final String getName() { 106 return "job-priority"; 107 } 108 109 } 110 | Popular Tags |