src/share/classes/javax/management/remote/JMXPrincipal.java
Print this page
*** 57,67 ****
* @see #getName()
*/
private String name;
/**
! * <p>Creates a JMXPrincipal for a given identity.</p>
*
* @param name the JMX Remote API name for this identity.
*
* @exception NullPointerException if the <code>name</code> is
* <code>null</code>.
--- 57,67 ----
* @see #getName()
*/
private String name;
/**
! * Creates a JMXPrincipal for a given identity.
*
* @param name the JMX Remote API name for this identity.
*
* @exception NullPointerException if the <code>name</code> is
* <code>null</code>.
*** 72,94 ****
}
/**
* Returns the name of this principal.
*
- * <p>
- *
* @return the name of this <code>JMXPrincipal</code>.
*/
public String getName() {
return name;
}
/**
* Returns a string representation of this <code>JMXPrincipal</code>.
*
- * <p>
- *
* @return a string representation of this <code>JMXPrincipal</code>.
*/
public String toString() {
return("JMXPrincipal: " + name);
}
--- 72,90 ----
*** 97,108 ****
* Compares the specified Object with this <code>JMXPrincipal</code>
* for equality. Returns true if the given object is also a
* <code>JMXPrincipal</code> and the two JMXPrincipals
* have the same name.
*
- * <p>
- *
* @param o Object to be compared for equality with this
* <code>JMXPrincipal</code>.
*
* @return true if the specified Object is equal to this
* <code>JMXPrincipal</code>.
--- 93,102 ----
*** 122,133 ****
}
/**
* Returns a hash code for this <code>JMXPrincipal</code>.
*
- * <p>
- *
* @return a hash code for this <code>JMXPrincipal</code>.
*/
public int hashCode() {
return name.hashCode();
}
--- 116,125 ----