t3.portfolios
Class Person
java.lang.Object
t3.portfolios.Person
public class Person
- extends java.lang.Object
A data structure class representing a single person. Two instances with
identical field data will return true when compared using the .equals() method.
- Author:
- pjt40
Constructor Summary |
Person(int clientId,
int personId)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
clientId
public final int clientId
personId
public final int personId
Person
public Person(int clientId,
int personId)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object