Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.clra.visitor
Class ApplicantSnapshot  view ApplicantSnapshot download ApplicantSnapshot.java

java.lang.Object
  extended bycom.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


Field Summary
private  java.lang.String addrstr1
           
private  java.lang.String addrstr2
           
private  java.util.Date applydate
           
private  java.util.Date birthday
           
private  java.lang.String city
           
private  java.lang.String daytel
           
private  java.lang.String email
           
private  java.lang.String eveningtel
           
private  java.lang.String experienceyear
           
private  java.lang.String firstname
           
private  int hashCode
           
private  java.lang.String lastname
           
private  java.lang.String middlename
           
private  java.lang.String othertel
           
private  java.lang.String recentyear
           
private  java.lang.String sex
           
private  java.lang.String state
           
private  java.lang.String status
           
private  java.lang.String suffix
           
private  java.lang.String zip
           
 
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)
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this object with another, and returns a numerical result based on the comparison.
 java.lang.String getAddrstr1()
           
 java.lang.String getAddrstr2()
           
 java.util.Date getApplydate()
           
 java.util.Date getBirthday()
           
 java.lang.String getCity()
           
 java.lang.String getDaytel()
           
 java.lang.String getEmail()
           
 java.lang.String getEveningtel()
           
 java.lang.String getExperienceyear()
           
 java.lang.String getFirstname()
           
 java.lang.String getLastname()
           
 java.lang.String getMiddlename()
           
 java.lang.String getOthertel()
           
 java.lang.String getRecentyear()
           
 java.lang.String getSex()
           
 java.lang.String getState()
           
 java.lang.String getStatus()
           
 java.lang.String getSuffix()
           
 java.lang.String getZip()
           
 int hashCode()
          Get a value that represents this Object, as uniquely as possible within the confines of an int.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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