1 7 package javax.print.attribute.standard; 8 9 import javax.print.attribute.Attribute ; 10 import javax.print.attribute.SetOfIntegerSyntax ; 11 import javax.print.attribute.SupportedValuesAttribute ; 12 13 31 public final class JobImpressionsSupported extends SetOfIntegerSyntax 32 implements SupportedValuesAttribute { 33 34 private static final long serialVersionUID = -4887354803843173692L; 35 36 37 50 public JobImpressionsSupported(int lowerBound, int upperBound) { 51 super (lowerBound, upperBound); 52 if (lowerBound > upperBound) { 53 throw new IllegalArgumentException ("Null range specified"); 54 } else if (lowerBound < 0) { 55 throw new IllegalArgumentException ( 56 "Job K octets value < 0 specified"); 57 } 58 } 59 60 61 80 public boolean equals(Object object) { 81 return (super.equals (object) && 82 object instanceof JobImpressionsSupported ); 83 } 84 85 95 public final Class <? extends Attribute > getCategory() { 96 return JobImpressionsSupported .class; 97 } 98 99 108 public final String getName() { 109 return "job-impressions-supported"; 110 } 111 112 } 113 | Popular Tags |