< prev index next >
src/java.base/share/classes/sun/security/pkcs10/PKCS10Attributes.java
Print this page
*** 96,106 ****
derEncode(out);
}
/**
* Encode the attributes in DER form to the stream.
! * Implements the <code>DerEncoder</code> interface.
*
* @param out the OutputStream to marshal the contents to.
* @exception IOException on encoding errors.
*/
public void derEncode(OutputStream out) throws IOException {
--- 96,106 ----
derEncode(out);
}
/**
* Encode the attributes in DER form to the stream.
! * Implements the {@code DerEncoder} interface.
*
* @param out the OutputStream to marshal the contents to.
* @exception IOException on encoding errors.
*/
public void derEncode(OutputStream out) throws IOException {
*** 155,166 ****
return (Collections.unmodifiableCollection(map.values()));
}
/**
* Compares this PKCS10Attributes for equality with the specified
! * object. If the <code>other</code> object is an
! * <code>instanceof</code> <code>PKCS10Attributes</code>, then
* all the entries are compared with the entries from this.
*
* @param other the object to test for equality with this PKCS10Attributes.
* @return true if all the entries match that of the Other,
* false otherwise.
--- 155,166 ----
return (Collections.unmodifiableCollection(map.values()));
}
/**
* Compares this PKCS10Attributes for equality with the specified
! * object. If the {@code other} object is an
! * {@code instanceof PKCS10Attributes}, then
* all the entries are compared with the entries from this.
*
* @param other the object to test for equality with this PKCS10Attributes.
* @return true if all the entries match that of the Other,
* false otherwise.
*** 203,216 ****
public int hashCode() {
return map.hashCode();
}
/**
! * Returns a string representation of this <tt>PKCS10Attributes</tt> object
* in the form of a set of entries, enclosed in braces and separated
! * by the ASCII characters "<tt>, </tt>" (comma and space).
! * <p>Overrides the <tt>toString</tt> method of <tt>Object</tt>.
*
* @return a string representation of this PKCS10Attributes.
*/
public String toString() {
String s = map.size() + "\n" + map.toString();
--- 203,216 ----
public int hashCode() {
return map.hashCode();
}
/**
! * Returns a string representation of this {@code PKCS10Attributes} object
* in the form of a set of entries, enclosed in braces and separated
! * by the ASCII characters "<code>, </code>" (comma and space).
! * <p>Overrides the {@code toString} method of {@code Object}.
*
* @return a string representation of this PKCS10Attributes.
*/
public String toString() {
String s = map.size() + "\n" + map.toString();
< prev index next >