/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package real.estate.dao;

/**
 *
 * @author User
 */
public class ListHouse implements Listable {

    private String lastName;
    private String firstName;
    private int lotNumber;
    private int price;
    private int squareFeet;
    private int numberOfBedRooms;

    public ListHouse(){
        
    }

    public String firstName() {
        return firstName;
    }

    public String lastName() {
        return lastName;
    }

    public int lotNumber() {
        return lotNumber;
    }

    public int price() {
        return price;
    }

    public int squareFeet() {
        return squareFeet;
    }

    public int numberOfBedRooms() {
        return numberOfBedRooms;
    }
    
    public ListHouse(String lastName, String firstName, int lotNumber, int price, int squareFeet, int bedRooms) {
        this.lastName = lastName;
        this.firstName = firstName;
        this.lotNumber = lotNumber;
        this.price = price;
        this.squareFeet = squareFeet;
        this.numberOfBedRooms = bedRooms;
    }

    @Override
    public Listable copy() {
        ListHouse house = new ListHouse(lastName, firstName, lotNumber, price, squareFeet, numberOfBedRooms);
        return house;
    }

    @Override
    public int compareTo(Listable otherHouse) {
        ListHouse thisHouse = (ListHouse) otherHouse;
        return (this.lotNumber - thisHouse.lotNumber);
    }

}

@@ -457,43 +457,163 @@
     
-public ListHouse()%7B%0A        %0A    %7D%0A
+/**%0A     * Instantiate the new ListHouse object %0A     */%0A    public ListHouse()%7B%0A        %0A    %7D%0A%0A    /**%0A     * Return the firstName%0A     * @return%0A     */
 %0A   
@@ -666,32 +666,90 @@
 rstName;%0A    %7D%0A%0A
+    /**%0A     * Return the lastName%0A     * @return%0A     */%0A
     public Strin
@@ -803,263 +803,772 @@
     
-public int lotNumber() %7B%0A        return lotNumber;%0A    %7D%0A%0A    public int price() %7B%0A        return price;%0A    %7D%0A%0A    public int squareFeet() %7B%0A        return squareFeet;%0A    %7D%0A%0A    public int numberOfBedRooms() %7B%0A        return numberOfBedRooms;%0A    %7D%0A    
+/**%0A     * Return the lotNumber%0A     * @return lotNumber%0A     */%0A    public int lotNumber() %7B%0A        return lotNumber;%0A    %7D%0A%0A    /**%0A     * Return the price%0A     * @return price%0A     */%0A    public int price() %7B%0A        return price;%0A    %7D%0A%0A    /**%0A     * Return the squareFeet%0A     * @return squareFeet%0A     */%0A    public int squareFeet() %7B%0A        return squareFeet;%0A    %7D%0A%0A    /**%0A     * Return the numberOfBedRooms%0A     * @return numberOfBedRooms%0A     */%0A    public int numberOfBedRooms() %7B%0A        return numberOfBedRooms;%0A    %7D%0A    %0A    /**%0A     * Parameterized constructor to instantiate new ListHouse object %0A     * @param lastName%0A     * @param firstName%0A     * @param lotNumber%0A     * @param price%0A     * @param squareFeet%0A     * @param bedRooms%0A     */
 %0A   
@@ -1891,32 +1891,106 @@
 edRooms;%0A    %7D%0A%0A
+    /**%0A     * Create a copy of the current object%0A     * @return%0A     */%0A
     @Override%0A  
@@ -2151,24 +2151,135 @@
 use;%0A    %7D%0A%0A
+    /**%0A     * Houses are compared  based on their lot numbers%0A     * @param otherHouse%0A     * @return%0A     */%0A
     @Overrid

Add javadoc to ListHouse