|
Préférences
Moteurs de recherche
|
||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.management.remote
|
Constructor Summary | |
---|---|
JMXPrincipal(String name)
Creates a JMXPrincipal for a given identity. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compares the specified Object with this JMXPrincipal
for equality. |
String |
getName()
Returns the name of this principal. |
int |
hashCode()
Returns a hash code for this JMXPrincipal . |
String |
toString()
Returns a string representation of this JMXPrincipal . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JMXPrincipal(String name)
Creates a JMXPrincipal for a given identity.
name
- the JMX Remote API name for this identity.
NullPointerException
- if the name
is
null
.Method Detail |
---|
public String getName()
JMXPrincipal
.public String toString()
JMXPrincipal
.
JMXPrincipal
.public boolean equals(Object o)
JMXPrincipal
for equality. Returns true if the given object is also a
JMXPrincipal
and the two JMXPrincipals
have the same name.
o
- Object to be compared for equality with this
JMXPrincipal
.
JMXPrincipal
.Object.hashCode()
,
Hashtable
public int hashCode()
JMXPrincipal
.
JMXPrincipal
.Object.equals(java.lang.Object)
,
Hashtable