Jadex 0.941

jadex.testcases.misc
Class Person

java.lang.Object
  extended byjadex.testcases.misc.Person

public class Person
extends Object

Simple person class with a name and an address.


Constructor Summary
Person(String name, String address)
          Create a new person.
 
Method Summary
 boolean equals(Object o)
          Test if two persons are equal.
 String getAddress()
          Get the address.
 String getName()
          Get the name.
 int hashCode()
          Calculate the hashcode.
 void setAddress(String address)
          Set the address.
 void setName(String name)
          Set the name.
 String toString()
          Get the string representation.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Person

public Person(String name,
              String address)
Create a new person.

Method Detail

getName

public String getName()
Get the name.

Returns:
The name.

setName

public void setName(String name)
Set the name.

Parameters:
name - The name.

getAddress

public String getAddress()
Get the address.

Returns:
The address.

setAddress

public void setAddress(String address)
Set the address.

Parameters:
address - The address.

equals

public boolean equals(Object o)
Test if two persons are equal.

Parameters:
o -
Returns:
True if the object is an equal person.

hashCode

public int hashCode()
Calculate the hashcode.

Returns:
The hashcode.

toString

public String toString()
Get the string representation.

Returns:
The string representation.

Jadex 0.941

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.