org.ujac.util.test
Class CollectionUtilsTest.Person

java.lang.Object
  extended by org.ujac.util.test.CollectionUtilsTest.Person
Enclosing class:
CollectionUtilsTest

public class CollectionUtilsTest.Person
extends Object

Data container for sorting tests.


Constructor Summary
CollectionUtilsTest.Person(int id, String name, String firstName)
          Constructs a Person instance with specific attributes.
 
Method Summary
 boolean equals(Object obj)
           
 String getFirstName()
          Getter method for the the property firstName.
 int getId()
          Getter method for the the property id.
 String getName()
          Getter method for the the property name.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionUtilsTest.Person

public CollectionUtilsTest.Person(int id,
                                  String name,
                                  String firstName)
Constructs a Person instance with specific attributes.

Parameters:
id - The initial ID.
name - The initial name.
firstName - The initial first name.
Method Detail

getId

public int getId()
Getter method for the the property id.

Returns:
The current value of property id.

getName

public String getName()
Getter method for the the property name.

Returns:
The current value of property name.

getFirstName

public String getFirstName()
Getter method for the the property firstName.

Returns:
The current value of property firstName.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2003-2004 UJAC.org. All Rights Reserved.