< prev index next >

src/java.desktop/share/classes/javax/print/attribute/standard/JobImpressions.java

Print this page

        

*** 61,71 **** * document data, this value will include such replication. In other words, this * value is always the number of impressions in the source document data, rather * than a measure of the number of impressions to be produced by the job. * <P> * <B>IPP Compatibility:</B> The integer value gives the IPP integer value. The ! * category name returned by <CODE>getName()</CODE> gives the IPP attribute * name. * * @see JobImpressionsSupported * @see JobImpressionsCompleted * @see JobKOctets --- 61,71 ---- * document data, this value will include such replication. In other words, this * value is always the number of impressions in the source document data, rather * than a measure of the number of impressions to be produced by the job. * <P> * <B>IPP Compatibility:</B> The integer value gives the IPP integer value. The ! * category name returned by {@code getName()} gives the IPP attribute * name. * * @see JobImpressionsSupported * @see JobImpressionsCompleted * @see JobKOctets
*** 83,93 **** * Construct a new job impressions attribute with the given integer value. * * @param value Integer value. * * @exception IllegalArgumentException ! * (Unchecked exception) Thrown if <CODE>value</CODE> is less than 0. */ public JobImpressions(int value) { super(value, 0, Integer.MAX_VALUE); } --- 83,93 ---- * Construct a new job impressions attribute with the given integer value. * * @param value Integer value. * * @exception IllegalArgumentException ! * (Unchecked exception) Thrown if {@code value} is less than 0. */ public JobImpressions(int value) { super(value, 0, Integer.MAX_VALUE); }
*** 95,115 **** * Returns whether this job impressions attribute is equivalent to the * passed in object. To be equivalent, all of the following conditions must * be true: * <OL TYPE=1> * <LI> ! * <CODE>object</CODE> is not null. * <LI> ! * <CODE>object</CODE> is an instance of class JobImpressions. * <LI> ! * This job impressions attribute's value and <CODE>object</CODE>'s value * are equal. * </OL> * * @param object Object to compare to. * ! * @return True if <CODE>object</CODE> is equivalent to this job * impressions attribute, false otherwise. */ public boolean equals(Object object) { return super.equals (object) && object instanceof JobImpressions; } --- 95,115 ---- * Returns whether this job impressions attribute is equivalent to the * passed in object. To be equivalent, all of the following conditions must * be true: * <OL TYPE=1> * <LI> ! * {@code object} is not null. * <LI> ! * {@code object} is an instance of class JobImpressions. * <LI> ! * This job impressions attribute's value and {@code object}'s value * are equal. * </OL> * * @param object Object to compare to. * ! * @return True if {@code object} is equivalent to this job * impressions attribute, false otherwise. */ public boolean equals(Object object) { return super.equals (object) && object instanceof JobImpressions; }
*** 130,140 **** /** * Get the name of the category of which this attribute value is an * instance. * <P> * For class JobImpressions, the category name is ! * <CODE>"job-impressions"</CODE>. * * @return Attribute category name. */ public final String getName() { return "job-impressions"; --- 130,140 ---- /** * Get the name of the category of which this attribute value is an * instance. * <P> * For class JobImpressions, the category name is ! * {@code "job-impressions"}. * * @return Attribute category name. */ public final String getName() { return "job-impressions";
< prev index next >