< prev index next >

src/java.desktop/share/classes/javax/print/attribute/URISyntax.java

Print this page

        

*** 50,60 **** * Constructs a URI attribute with the specified URI. * * @param uri URI. * * @exception NullPointerException ! * (unchecked exception) Thrown if <CODE>uri</CODE> is null. */ protected URISyntax(URI uri) { this.uri = verify (uri); } --- 50,60 ---- * Constructs a URI attribute with the specified URI. * * @param uri URI. * * @exception NullPointerException ! * (unchecked exception) Thrown if {@code uri} is null. */ protected URISyntax(URI uri) { this.uri = verify (uri); }
*** 86,106 **** * Returns whether this URI 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 URISyntax. * <LI> ! * This URI attribute's underlying URI and <CODE>object</CODE>'s * underlying URI are equal. * </OL> * * @param object Object to compare to. * ! * @return True if <CODE>object</CODE> is equivalent to this URI * attribute, false otherwise. */ public boolean equals(Object object) { return(object != null && object instanceof URISyntax && --- 86,106 ---- * Returns whether this URI 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 URISyntax. * <LI> ! * This URI attribute's underlying URI and {@code object}'s * underlying URI are equal. * </OL> * * @param object Object to compare to. * ! * @return True if {@code object} is equivalent to this URI * attribute, false otherwise. */ public boolean equals(Object object) { return(object != null && object instanceof URISyntax &&
< prev index next >