< prev index next >
src/java.desktop/share/classes/javax/print/attribute/standard/NumberUp.java
Print this page
@@ -116,11 +116,11 @@
* on a new media sheet; this means the last impression of an input doc may
* have fewer than <I>n<SUB>i</SUB></I> print-stream pages on it.
* </UL>
* </UL>
* <B>IPP Compatibility:</B> The integer value gives the IPP integer value.
- * The category name returned by <CODE>getName()</CODE> gives the IPP
+ * The category name returned by {@code getName()} gives the IPP
* attribute name.
*
* @author Alan Kaminsky
*/
public final class NumberUp extends IntegerSyntax
@@ -133,32 +133,32 @@
* Construct a new number up attribute with the given integer value.
*
* @param value Integer value.
*
* @exception IllegalArgumentException
- * (Unchecked exception) Thrown if <CODE>value</CODE> is less than 1.
+ * (Unchecked exception) Thrown if {@code value} is less than 1.
*/
public NumberUp(int value) {
super (value, 1, Integer.MAX_VALUE);
}
/**
* Returns whether this number up 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.
+ * {@code object} is not null.
* <LI>
- * <CODE>object</CODE> is an instance of class NumberUp.
+ * {@code object} is an instance of class NumberUp.
* <LI>
- * This number up attribute's value and <CODE>object</CODE>'s value are
+ * This number up attribute's value and {@code object}'s value are
* equal.
* </OL>
*
* @param object Object to compare to.
*
- * @return True if <CODE>object</CODE> is equivalent to this number up
+ * @return True if {@code object} is equivalent to this number up
* attribute, false otherwise.
*/
public boolean equals(Object object) {
return (super.equals(object) && object instanceof NumberUp);
}
@@ -178,11 +178,11 @@
/**
* Get the name of the category of which this attribute value is an
* instance.
* <P>
- * For class NumberUp, the category name is <CODE>"number-up"</CODE>.
+ * For class NumberUp, the category name is {@code "number-up"}.
*
* @return Attribute category name.
*/
public final String getName() {
return "number-up";
< prev index next >