java.lang.Object
com.clra.visitor.ApplicantSnapshot
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public class ApplicantSnapshot
- extends java.lang.Object
- implements java.lang.Comparable, java.io.Serializable
|
Constructor Summary |
ApplicantSnapshot(java.lang.String nlast,
java.lang.String nfirst,
java.lang.String nmiddle,
java.lang.String nsuffix,
java.lang.String mail,
java.lang.String tel_evening,
java.lang.String tel_day,
java.lang.String tel_other,
java.lang.String addr_str1,
java.lang.String addr_str2,
java.lang.String addr_city,
java.lang.String addr_state,
java.lang.String addr_zip,
java.lang.String experience_year,
java.lang.String recent_year,
java.util.Date birth,
java.lang.String sex,
java.util.Date apply_date,
java.lang.String status)
|
lastname
private java.lang.String lastname
firstname
private java.lang.String firstname
middlename
private java.lang.String middlename
suffix
private java.lang.String suffix
email
private java.lang.String email
eveningtel
private java.lang.String eveningtel
daytel
private java.lang.String daytel
othertel
private java.lang.String othertel
addrstr1
private java.lang.String addrstr1
addrstr2
private java.lang.String addrstr2
city
private java.lang.String city
state
private java.lang.String state
zip
private java.lang.String zip
experienceyear
private java.lang.String experienceyear
recentyear
private java.lang.String recentyear
birthday
private java.util.Date birthday
sex
private java.lang.String sex
applydate
private java.util.Date applydate
status
private java.lang.String status
hashCode
private int hashCode
ApplicantSnapshot
public ApplicantSnapshot(java.lang.String nlast,
java.lang.String nfirst,
java.lang.String nmiddle,
java.lang.String nsuffix,
java.lang.String mail,
java.lang.String tel_evening,
java.lang.String tel_day,
java.lang.String tel_other,
java.lang.String addr_str1,
java.lang.String addr_str2,
java.lang.String addr_city,
java.lang.String addr_state,
java.lang.String addr_zip,
java.lang.String experience_year,
java.lang.String recent_year,
java.util.Date birth,
java.lang.String sex,
java.util.Date apply_date,
java.lang.String status)
getFirstname
public java.lang.String getFirstname()
getLastname
public java.lang.String getLastname()
getMiddlename
public java.lang.String getMiddlename()
getSuffix
public java.lang.String getSuffix()
getEveningtel
public java.lang.String getEveningtel()
getDaytel
public java.lang.String getDaytel()
getOthertel
public java.lang.String getOthertel()
getEmail
public java.lang.String getEmail()
getBirthday
public java.util.Date getBirthday()
getAddrstr1
public java.lang.String getAddrstr1()
getAddrstr2
public java.lang.String getAddrstr2()
getCity
public java.lang.String getCity()
getState
public java.lang.String getState()
getZip
public java.lang.String getZip()
getExperienceyear
public java.lang.String getExperienceyear()
getRecentyear
public java.lang.String getRecentyear()
getSex
public java.lang.String getSex()
getApplydate
public java.util.Date getApplydate()
getStatus
public java.lang.String getStatus()
hashCode
public int hashCode()
- Description copied from class:
java.lang.Object
- Get a value that represents this Object, as uniquely as
possible within the confines of an int.
There are some requirements on this method which
subclasses must follow:
- Semantic equality implies identical hashcodes. In other
words, if
a.equals(b) is true, then
a.hashCode() == b.hashCode() must be as well.
However, the reverse is not necessarily true, and two
objects may have the same hashcode without being equal.
- It must be consistent. Whichever value o.hashCode()
returns on the first invocation must be the value
returned on all later invocations as long as the object
exists. Notice, however, that the result of hashCode may
change between separate executions of a Virtual Machine,
because it is not invoked on the same object.
Notice that since hashCode is used in
java.util.Hashtable and other hashing classes,
a poor implementation will degrade the performance of hashing
(so don't blindly implement it as returning a constant!). Also,
if calculating the hash is time-consuming, a class may consider
caching the results.
The default implementation returns
System.identityHashCode(this)
compareTo
public int compareTo(java.lang.Object o)
- Description copied from interface:
java.lang.Comparable
- Compares this object with another, and returns a numerical result based
on the comparison. If the result is negative, this object sorts less
than the other; if 0, the two are equal, and if positive, this object
sorts greater than the other. To translate this into boolean, simply
perform
o1.compareTo(o2) <op> 0, where op
is one of <, <=, =, !=, >, or >=.
You must make sure that the comparison is mutual, ie.
sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) (where sgn() is
defined as -1, 0, or 1 based on the sign). This includes throwing an
exception in either direction if the two are not comparable; hence,
compareTo(null) should always throw an Exception.
You should also ensure transitivity, in two forms:
x.compareTo(y) > 0 && y.compareTo(z) > 0 implies
x.compareTo(z) > 0; and x.compareTo(y) == 0
implies x.compareTo(z) == y.compareTo(z).
- Specified by:
compareTo in interface java.lang.Comparable