Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
boolean equal = (this == obj);
if (!equal && obj instanceof MusicianPK)
{
MusicianPK other = (MusicianPK) obj;
equal = firstName.equals(other.firstName)
&& lastName.equals(other.lastName)
&& ssn.equals(other.ssn);
}
return equal;
|
public java.lang.String | getFirstName()
return firstName;
|
public java.lang.String | getLastName()
return lastName;
|
public java.lang.String | getSsn()
return ssn;
|
public int | hashCode()
int result = 19;
result = result * 29 + firstName.hashCode();
result = result * 29 + lastName.hashCode();
result = result * 29 + ssn.hashCode();
return result;
|
public void | setFirstName(java.lang.String firstName)
this.firstName = firstName;
|
public void | setLastName(java.lang.String lastName)
this.lastName = lastName;
|
public void | setSsn(java.lang.String ssn)
this.ssn = ssn;
|
public java.lang.String | toString()
StringBuffer sb = new StringBuffer(getClass().getName());
sb.append("[firstName=");
sb.append(firstName);
sb.append(",lastName=");
sb.append(lastName);
sb.append(",ssn=");
sb.append(ssn);
sb.append("]");
return sb.toString();
|