< prev index next >
src/java.desktop/share/classes/javax/print/attribute/TextSyntax.java
Print this page
*** 59,72 ****
* Constructs a TextAttribute with the specified string and locale.
*
* @param value Text string.
* @param locale Natural language of the text string. null
* is interpreted to mean the default locale for as returned
! * by <code>Locale.getDefault()</code>
*
* @exception NullPointerException
! * (unchecked exception) Thrown if <CODE>value</CODE> is null.
*/
protected TextSyntax(String value, Locale locale) {
this.value = verify (value);
this.locale = verify (locale);
}
--- 59,72 ----
* Constructs a TextAttribute with the specified string and locale.
*
* @param value Text string.
* @param locale Natural language of the text string. null
* is interpreted to mean the default locale for as returned
! * by {@code Locale.getDefault()}
*
* @exception NullPointerException
! * (unchecked exception) Thrown if {@code value} is null.
*/
protected TextSyntax(String value, Locale locale) {
this.value = verify (value);
this.locale = verify (locale);
}
*** 113,136 ****
/**
* Returns whether this text 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 TextSyntax.
* <LI>
! * This text attribute's underlying string and <CODE>object</CODE>'s
* underlying string are equal.
* <LI>
! * This text attribute's locale and <CODE>object</CODE>'s locale are
* equal.
* </OL>
*
* @param object Object to compare to.
*
! * @return True if <CODE>object</CODE> is equivalent to this text
* attribute, false otherwise.
*/
public boolean equals(Object object) {
return(object != null &&
object instanceof TextSyntax &&
--- 113,136 ----
/**
* Returns whether this text 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 TextSyntax.
* <LI>
! * This text attribute's underlying string and {@code object}'s
* underlying string are equal.
* <LI>
! * This text attribute's locale and {@code object}'s locale are
* equal.
* </OL>
*
* @param object Object to compare to.
*
! * @return True if {@code object} is equivalent to this text
* attribute, false otherwise.
*/
public boolean equals(Object object) {
return(object != null &&
object instanceof TextSyntax &&
< prev index next >