org.fuin.examples.utils4j.filter
Class Person

java.lang.Object
  extended by org.fuin.examples.utils4j.filter.Person

public final class Person
extends Object

A person class used for the examples.


Constructor Summary
Person(int id, String firstName, String lastName, boolean unknown)
          Constructor with all necessary data.
 
Method Summary
 String getFirstName()
          Returns the first name.
 int getId()
          Returns the unique ID.
 String getLastName()
          Returns the last name.
 boolean isUnknown()
          Returns if the person is unknown.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Person

public Person(int id,
              String firstName,
              String lastName,
              boolean unknown)
Constructor with all necessary data.

Parameters:
id - Unique ID.
firstName - First name.
lastName - Last name.
unknown - Is the person known?
Method Detail

getId

public final int getId()
Returns the unique ID.

Returns:
ID.

getFirstName

public final String getFirstName()
Returns the first name.

Returns:
Name.

getLastName

public final String getLastName()
Returns the last name.

Returns:
Name.

isUnknown

public final boolean isUnknown()
Returns if the person is unknown.

Returns:
If the person is known true else false.

toString

public final String toString()

Overrides:
toString in class Object


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.