< prev index next >

src/java.desktop/share/classes/javax/swing/text/SimpleAttributeSet.java

Print this page

        

*** 41,51 **** * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the <code>java.beans</code> package. * Please see {@link java.beans.XMLEncoder}. * * @author Tim Prinzing */ @SuppressWarnings("serial") // Same-version serialization only --- 41,51 ---- * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @author Tim Prinzing */ @SuppressWarnings("serial") // Same-version serialization only
*** 125,135 **** } /** * Gets the names of the attributes in the set. * ! * @return the names as an <code>Enumeration</code> */ public Enumeration<?> getAttributeNames() { return Collections.enumeration(table.keySet()); } --- 125,135 ---- } /** * Gets the names of the attributes in the set. * ! * @return the names as an {@code Enumeration} */ public Enumeration<?> getAttributeNames() { return Collections.enumeration(table.keySet()); }
*** 292,306 **** return table.hashCode(); } /** * Compares this object to the specified object. ! * The result is <code>true</code> if the object is an equivalent * set of attributes. * @param obj the object to compare this attribute set with ! * @return <code>true</code> if the objects are equal; ! * <code>false</code> otherwise */ public boolean equals(Object obj) { if (this == obj) { return true; } --- 292,306 ---- return table.hashCode(); } /** * Compares this object to the specified object. ! * The result is {@code true} if the object is an equivalent * set of attributes. * @param obj the object to compare this attribute set with ! * @return {@code true} if the objects are equal; ! * {@code false} otherwise */ public boolean equals(Object obj) { if (this == obj) { return true; }
< prev index next >