java.lang.Objectcom.microfocus.cobol.connector.spi.CobolPrincipal
| Constructor Summary | |
CobolPrincipal(String name)
Create a CobolPrincipal with a username. |
|
| Method Summary | |
boolean |
equals(Object o)
Compares the specified Object with this SamplePrincipal
for equality. |
String |
getName()
Return the username for this SamplePrincipal. |
int |
hashCode()
Return a hash code for this SamplePrincipal. |
String |
toString()
Return a string representation of this SamplePrincipal. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CobolPrincipal(String name)
name - the username for this user.
NullPointerException - if the name
is null.| Method Detail |
public String getName()
SamplePrincipal.
getName in interface PrincipalSamplePrincipalpublic String toString()
SamplePrincipal.
toString in interface PrincipalSamplePrincipal.public boolean equals(Object o)
SamplePrincipal
for equality. Returns true if the given object is also a
SamplePrincipal and the two SamplePrincipals
have the same username.
equals in interface Principalo - Object to be compared for equality with this
SamplePrincipal.
SamplePrincipal.public int hashCode()
SamplePrincipal.
hashCode in interface PrincipalSamplePrincipal.Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.