FileDocCategorySizeDatePackage
TaxReturn.javaAPI DocExample2990Wed May 18 09:39:00 BST 2005com.discursive.jccook.lang

TaxReturn

public class TaxReturn extends Object

Fields Summary
private String
ssn
private int
year
private String
lastName
private BigDecimal
taxableIncome
Constructors Summary
public TaxReturn()

    
public TaxReturn(String pSsn, int pYear, String pLastName, BigDecimal pTaxableIncome)

        setSsn(pSsn);
        setYear(pYear);
        setLastName(pLastName);
        setTaxableIncome(pTaxableIncome);
    
Methods Summary
public intcompareTo(java.lang.Object pObject)

        return CompareToBuilder.reflectionCompare(this, pObject);
    
public booleanequals(java.lang.Object pObject)

        boolean equals = false;
        if (pObject instanceof TaxReturn) {
            TaxReturn bean = (TaxReturn) pObject;
            equals =
                (new EqualsBuilder()
                    .append(ssn, bean.ssn)
                    .append(year, bean.year))
                    .isEquals();
        }
        return equals;
    
public java.lang.StringgetLastName()

        return lastName;
    
public java.lang.StringgetSsn()

        return ssn;
    
public java.math.BigDecimalgetTaxableIncome()

        return taxableIncome;
    
public intgetYear()

        return year;
    
public inthashCode()

        return new HashCodeBuilder(3, 7).append(ssn).append(year).toHashCode();
    
public voidsetLastName(java.lang.String pLastName)

        lastName = pLastName;
    
public voidsetSsn(java.lang.String pSsn)

        ssn = pSsn;
    
public voidsetTaxableIncome(java.math.BigDecimal pTaxableIncome)

        taxableIncome = pTaxableIncome;
    
public voidsetYear(int pYear)

        year = pYear;
    
public java.lang.StringtoString()

        return new ToStringBuilder(this)
            .append("ssn", ssn)
            .append("year", year)
            .append("lastName", lastName)
            .toString();