Package jadex.bdi.testcases.misc
Class Person
- java.lang.Object
- 
- jadex.bdi.testcases.misc.Person
 
- 
 public class Person extends java.lang.ObjectSimple person class with a name and an address.
- 
- 
Constructor SummaryConstructors Constructor Description Person(java.lang.String name, java.lang.String address)Create a new person.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Test if two persons are equal.java.lang.StringgetAddress()Get the address.java.lang.StringgetName()Get the name.inthashCode()Calculate the hashcode.voidsetAddress(java.lang.String address)Set the address.voidsetName(java.lang.String name)Set the name.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() Get the name.- Returns:
- The name.
 
 - 
setNamepublic void setName(java.lang.String name) Set the name.- Parameters:
- name- The name.
 
 - 
getAddresspublic java.lang.String getAddress() Get the address.- Returns:
- The address.
 
 - 
setAddresspublic void setAddress(java.lang.String address) Set the address.- Parameters:
- address- The address.
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if two persons are equal.- Overrides:
- equalsin class- java.lang.Object
- Parameters:
- o-
- Returns:
- True if the object is an equal person.
 
 - 
hashCodepublic int hashCode() Calculate the hashcode.- Overrides:
- hashCodein class- java.lang.Object
- Returns:
- The hashcode.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 
- 
 
-