< prev index next >
src/java.desktop/share/classes/javax/swing/text/html/MuxingAttributeSet.java
Print this page
@@ -27,52 +27,52 @@
import javax.swing.text.*;
import java.io.Serializable;
import java.util.*;
/**
- * An implementation of <code>AttributeSet</code> that can multiplex
- * across a set of <code>AttributeSet</code>s.
+ * An implementation of {@code AttributeSet} that can multiplex
+ * across a set of {@code AttributeSet}s.
*
*/
@SuppressWarnings("serial") // Same-version serialization only
class MuxingAttributeSet implements AttributeSet, Serializable {
/**
- * Creates a <code>MuxingAttributeSet</code> with the passed in
+ * Creates a {@code MuxingAttributeSet} with the passed in
* attributes.
*/
public MuxingAttributeSet(AttributeSet[] attrs) {
this.attrs = attrs;
}
/**
- * Creates an empty <code>MuxingAttributeSet</code>. This is intended for
+ * Creates an empty {@code MuxingAttributeSet}. This is intended for
* use by subclasses only, and it is also intended that subclasses will
- * set the constituent <code>AttributeSet</code>s before invoking any
- * of the <code>AttributeSet</code> methods.
+ * set the constituent {@code AttributeSet}s before invoking any
+ * of the {@code AttributeSet} methods.
*/
protected MuxingAttributeSet() {
}
/**
- * Directly sets the <code>AttributeSet</code>s that comprise this
- * <code>MuxingAttributeSet</code>.
+ * Directly sets the {@code AttributeSet}s that comprise this
+ * {@code MuxingAttributeSet}.
*/
protected synchronized void setAttributes(AttributeSet[] attrs) {
this.attrs = attrs;
}
/**
- * Returns the <code>AttributeSet</code>s multiplexing too. When the
- * <code>AttributeSet</code>s need to be referenced, this should be called.
+ * Returns the {@code AttributeSet}s multiplexing too. When the
+ * {@code AttributeSet}s need to be referenced, this should be called.
*/
protected synchronized AttributeSet[] getAttributes() {
return attrs;
}
/**
- * Inserts <code>as</code> at <code>index</code>. This assumes
- * the value of <code>index</code> is between 0 and attrs.length,
+ * Inserts {@code as} at {@code index}. This assumes
+ * the value of {@code index} is between 0 and attrs.length,
* inclusive.
*/
protected synchronized void insertAttributeSetAt(AttributeSet as,
int index) {
int numAttrs = attrs.length;
@@ -93,12 +93,12 @@
newAttrs[index] = as;
attrs = newAttrs;
}
/**
- * Removes the AttributeSet at <code>index</code>. This assumes
- * the value of <code>index</code> is greater than or equal to 0,
+ * Removes the AttributeSet at {@code index}. This assumes
+ * the value of {@code index} is greater than or equal to 0,
* and less than attrs.length.
*/
protected synchronized void removeAttributeSetAt(int index) {
int numAttrs = attrs.length;
AttributeSet[] newAttrs = new AttributeSet[numAttrs - 1];
@@ -256,12 +256,12 @@
public AttributeSet getResolveParent() {
return null;
}
/**
- * The <code>AttributeSet</code>s that make up the resulting
- * <code>AttributeSet</code>.
+ * The {@code AttributeSet}s that make up the resulting
+ * {@code AttributeSet}.
*/
private AttributeSet[] attrs;
/**
< prev index next >