45 * corresponding condition becomes true of the Print Job, and the printer
46 * removes the {@link JobStateReason JobStateReason} object again when the
47 * corresponding condition becomes false, regardless of whether the Print Job's
48 * overall {@link JobState JobState} also changed.
49 * <P>
50 * Class JobStateReasons inherits its implementation from class {@link
51 * java.util.HashSet java.util.HashSet}. Unlike most printing attributes which
52 * are immutable once constructed, class JobStateReasons is designed to be
53 * mutable; you can add {@link JobStateReason JobStateReason} objects to an
54 * existing JobStateReasons object and remove them again. However, like class
55 * {@link java.util.HashSet java.util.HashSet}, class JobStateReasons is not
56 * multiple thread safe. If a JobStateReasons object will be used by multiple
57 * threads, be sure to synchronize its operations (e.g., using a synchronized
58 * set view obtained from class {@link java.util.Collections
59 * java.util.Collections}).
60 * <P>
61 * <B>IPP Compatibility:</B> The string value returned by each individual {@link
62 * JobStateReason JobStateReason} object's <CODE>toString()</CODE> method gives
63 * the IPP keyword value. The category name returned by <CODE>getName()</CODE>
64 * gives the IPP attribute name.
65 * <P>
66 *
67 * @author Alan Kaminsky
68 */
69 public final class JobStateReasons
70 extends HashSet<JobStateReason> implements PrintJobAttribute {
71
72 private static final long serialVersionUID = 8849088261264331812L;
73
74 /**
75 * Construct a new, empty job state reasons attribute; the underlying hash
76 * set has the default initial capacity and load factor.
77 */
78 public JobStateReasons() {
79 super();
80 }
81
82 /**
83 * Construct a new, empty job state reasons attribute; the underlying hash
84 * set has the given initial capacity and the default load factor.
85 *
|
45 * corresponding condition becomes true of the Print Job, and the printer
46 * removes the {@link JobStateReason JobStateReason} object again when the
47 * corresponding condition becomes false, regardless of whether the Print Job's
48 * overall {@link JobState JobState} also changed.
49 * <P>
50 * Class JobStateReasons inherits its implementation from class {@link
51 * java.util.HashSet java.util.HashSet}. Unlike most printing attributes which
52 * are immutable once constructed, class JobStateReasons is designed to be
53 * mutable; you can add {@link JobStateReason JobStateReason} objects to an
54 * existing JobStateReasons object and remove them again. However, like class
55 * {@link java.util.HashSet java.util.HashSet}, class JobStateReasons is not
56 * multiple thread safe. If a JobStateReasons object will be used by multiple
57 * threads, be sure to synchronize its operations (e.g., using a synchronized
58 * set view obtained from class {@link java.util.Collections
59 * java.util.Collections}).
60 * <P>
61 * <B>IPP Compatibility:</B> The string value returned by each individual {@link
62 * JobStateReason JobStateReason} object's <CODE>toString()</CODE> method gives
63 * the IPP keyword value. The category name returned by <CODE>getName()</CODE>
64 * gives the IPP attribute name.
65 *
66 * @author Alan Kaminsky
67 */
68 public final class JobStateReasons
69 extends HashSet<JobStateReason> implements PrintJobAttribute {
70
71 private static final long serialVersionUID = 8849088261264331812L;
72
73 /**
74 * Construct a new, empty job state reasons attribute; the underlying hash
75 * set has the default initial capacity and load factor.
76 */
77 public JobStateReasons() {
78 super();
79 }
80
81 /**
82 * Construct a new, empty job state reasons attribute; the underlying hash
83 * set has the given initial capacity and the default load factor.
84 *
|