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.PrintJobAttribute ; 12 13 26 public final class NumberOfDocuments extends IntegerSyntax 27 implements PrintJobAttribute { 28 29 private static final long serialVersionUID = 7891881310684461097L; 30 31 32 41 public NumberOfDocuments(int value) { 42 super (value, 0, Integer.MAX_VALUE); 43 } 44 45 64 public boolean equals(Object object) { 65 return (super.equals (object) && 66 object instanceof NumberOfDocuments ); 67 } 68 69 79 public final Class <? extends Attribute > getCategory() { 80 return NumberOfDocuments .class; 81 } 82 83 92 public final String getName() { 93 return "number-of-documents"; 94 } 95 96 } 97 | Popular Tags |