|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a principal, which can be an individual, a corporation, a program thread, or anything that can have an identity.
Identity
Method Summary | |
boolean |
equals(java.lang.Object another)
Compares two Objects for equality. |
java.lang.String |
getName()
Returns the name of this principal. |
int |
hashCode()
Returns a hash code value for this object (principal). |
java.lang.String |
toString()
Generates a string representation of the object (principal). |
Method Detail |
public boolean equals(java.lang.Object another)
The equals method implements the most discriminating possible equivalence relation on objects; that is, for any reference values X and Y, this method returns TRUE if and only if X and Y refer to the same object (X==Y has the value TRUE).
another
- The reference object with which to compare.public java.lang.String toString()
public int hashCode()
public java.lang.String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |