1 7 package javax.print.attribute.standard; 8 9 import java.util.Collection ; 10 import java.util.HashSet ; 11 12 import javax.print.attribute.Attribute ; 13 import javax.print.attribute.PrintJobAttribute ; 14 15 51 public final class JobStateReasons 52 extends HashSet <JobStateReason > implements PrintJobAttribute { 53 54 private static final long serialVersionUID = 8849088261264331812L; 55 56 60 public JobStateReasons() { 61 super(); 62 } 63 64 72 public JobStateReasons(int initialCapacity) { 73 super (initialCapacity); 74 } 75 76 85 public JobStateReasons(int initialCapacity, float loadFactor) { 86 super (initialCapacity, loadFactor); 87 } 88 89 107 public JobStateReasons(Collection <JobStateReason > collection) { 108 super (collection); 109 } 110 111 129 public boolean add(JobStateReason o) { 130 if (o == null) { 131 throw new NullPointerException (); 132 } 133 return super.add ((JobStateReason ) o); 134 } 135 136 145 public final Class <? extends Attribute > getCategory() { 146 return JobStateReasons .class; 147 } 148 149 158 public final String getName() { 159 return "job-state-reasons"; 160 } 161 162 } 163 | Popular Tags |