Generic Comparator

com.myjeeva.comparator.example.vo
Class PersonVO

java.lang.Object
  extended by com.myjeeva.comparator.example.vo.PersonVO
All Implemented Interfaces:
Serializable

public class PersonVO
extends Object
implements Serializable

Sample Value object used of Sorting purpose demonstrating Generic Comparator

Author:
Jeevanandam Madanagopal
See Also:
Serialized Form

Constructor Summary
PersonVO()
           
 
Method Summary
 Date getDob()
           
 String getEmailId()
           
 Float getHeight()
           
 Integer getId()
           
 String getName()
           
 Long getSalary()
           
 void setDob(Date dob)
           
 void setEmailId(String emailId)
           
 void setHeight(Float height)
           
 void setId(Integer id)
           
 void setName(String name)
           
 void setSalary(Long salary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonVO

public PersonVO()
Method Detail

getId

public Integer getId()
Returns:
the id

setId

public void setId(Integer id)
Parameters:
id - the id to set

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

getHeight

public Float getHeight()
Returns:
the height

setHeight

public void setHeight(Float height)
Parameters:
height - the height to set

getSalary

public Long getSalary()
Returns:
the salary

setSalary

public void setSalary(Long salary)
Parameters:
salary - the salary to set

getEmailId

public String getEmailId()
Returns:
the emailId

setEmailId

public void setEmailId(String emailId)
Parameters:
emailId - the emailId to set

getDob

public Date getDob()
Returns:
the dob

setDob

public void setDob(Date dob)
Parameters:
dob - the dob to set

Generic Comparator

Copyright © 2010-2012 www.myjeeva.com, All rights reserved.

The copyright of the pages and contents on this website is with myjeeva.com and the content is licensed under Creative Commons Attribution-Share Alike 3.0 Unported License. Libraries and code snippets on myjeeva.com has license information.