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 JobKOctetsSupported extends SetOfIntegerSyntax 32 implements SupportedValuesAttribute { 33 34 private static final long serialVersionUID = -2867871140549897443L; 35 36 49 public JobKOctetsSupported(int lowerBound, int upperBound) { 50 super (lowerBound, upperBound); 51 if (lowerBound > upperBound) { 52 throw new IllegalArgumentException ("Null range specified"); 53 } else if (lowerBound < 0) { 54 throw new IllegalArgumentException 55 ("Job K octets value < 0 specified"); 56 } 57 } 58 59 78 public boolean equals(Object object) { 79 return (super.equals (object) && 80 object instanceof JobKOctetsSupported ); 81 } 82 83 93 public final Class <? extends Attribute > getCategory() { 94 return JobKOctetsSupported .class; 95 } 96 97 106 public final String getName() { 107 return "job-k-octets-supported"; 108 } 109 110 } 111 | Popular Tags |