Methods Summary |
---|
public int | compareTo(java.lang.Object o)
int compare = -1; // By default return less-than
if( o != null &&
PoliticalCandidate.class.isAssignableFrom( o.getClass() ) ) {
PoliticalCandidate pc = (PoliticalCandidate) o;
compare = (new CompareToBuilder()
.append(firstName, pc.firstName)
.append(lastName, pc.lastName)).toComparison();
}
return compare;
|
public java.util.Date | getDateOfBirth() return dateOfBirth;
|
public java.lang.String | getFirstName() return firstName;
|
public java.lang.String | getLastName() return lastName;
|
public java.math.BigDecimal | getMoneyRaised() return moneyRaised;
|
public State | getState() return state;
|
public void | setDateOfBirth(java.util.Date dateOfBirth)
this.dateOfBirth = dateOfBirth;
|
public void | setFirstName(java.lang.String firstName)
this.firstName = firstName;
|
public void | setLastName(java.lang.String lastName)
this.lastName = lastName;
|
public void | setMoneyRaised(java.math.BigDecimal moneyRaised)
this.moneyRaised = moneyRaised;
|
public void | setState(State state)
this.state = state;
|
public java.lang.String | toString()
return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE)
.append( "lastName", lastName )
.append( "firstName", firstName )
.toString();
|