< prev index next >

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

Print this page

        

@@ -60,11 +60,11 @@
  * document, the second input document, . . . the last input document, the group
  * of documents being repeated <I>n</I> times.
  * </UL>
  * <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
+ * category name returned by {@code getName()} gives the IPP attribute
  * name.
  *
  * @author  David Mendenhall
  * @author  Alan Kamihensky
  */

@@ -77,32 +77,32 @@
      * Construct a new copies 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 Copies(int value) {
         super (value, 1, Integer.MAX_VALUE);
     }
 
     /**
      * Returns whether this copies 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 Copies.
+     * {@code object} is an instance of class Copies.
      * <LI>
-     * This copies attribute's value and <CODE>object</CODE>'s value are
+     * This copies 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 copies
+     * @return  True if {@code object} is equivalent to this copies
      *          attribute, false otherwise.
      */
     public boolean equals(Object object) {
         return super.equals (object) && object instanceof Copies;
     }

@@ -122,11 +122,11 @@
 
     /**
      * Get the name of the category of which this attribute value is an
      * instance.
      * <P>
-     * For class Copies, the category name is <CODE>"copies"</CODE>.
+     * For class Copies, the category name is {@code "copies"}.
      *
      * @return  Attribute category name.
      */
     public final String getName() {
         return "copies";
< prev index next >