/*
 * 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 bedRooms;

    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.bedRooms = bedRooms;
    }


    public Listable copy() {
        ListHouse list1 = new ListHouse(lastName, firstName, lotNumber, price, squareFeet, bedRooms);
        return list1;
    }

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

    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 bedRooms() {
        return bedRooms;
    }

}

@@ -441,16 +441,389 @@
 Rooms;%0A%0A
+%0A    public String firstName() %7B%0A        return firstName;%0A    %7D%0A%0A    public String lastName() %7B%0A        return lastName;%0A    %7D%0A%0A    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 bedRooms() %7B%0A        return bedRooms;%0A    %7D%0A    %0A
     publ
@@ -888,20 +888,8 @@
 ber,
-%0A           
  int
@@ -1141,16 +1141,29 @@
 %0A    %7D%0A%0A
+    @Override
 %0A    pub
@@ -1202,21 +1202,21 @@
 stHouse 
-list1
+house
  = new L
@@ -1305,13 +1305,13 @@
 urn 
-list1
+house
 ;%0A  
@@ -1368,16 +1368,21 @@
 le other
+House
 ) %7B%0A    
@@ -1395,22 +1395,25 @@
 stHouse 
-o
 th
-er1
+isHouse
  = (List
@@ -1424,16 +1424,21 @@
 e) other
+House
 ;%0A      
@@ -1468,393 +1468,28 @@
 r - 
-o
 th
-er1.lotNumber);%0A    %7D%0A%0A    public String firstName() %7B%0A        return firstName;%0A    %7D%0A%0A    public String lastName() %7B%0A        return lastName;%0A    %7D%0A%0A    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 bedRooms() %7B%0A        return bedRooms
+isHouse.lotNumber)
 ;%0A  

Organized the code ListHouse.java