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

}

@@ -277,16 +277,154 @@
 able %7B%0A%0A
+    public int no_of_item;%0A    public int%5B%5D list;%0A    private static final int max_list = 5;%0A    public int size;%0A    public int position;
 %0A%0A    pr
@@ -920,16 +920,713 @@
 %0A    %7D%0A%0A
+    public int getNo_of_item() %7B%0A        return no_of_item;%0A    %7D%0A%0A    public void setNo_of_item(int no_of_item) %7B%0A        this.no_of_item = no_of_item;%0A    %7D%0A%0A    public int%5B%5D getList() %7B%0A        return list;%0A    %7D%0A%0A    public void setList(int%5B%5D list) %7B%0A        this.list = list;%0A    %7D%0A%0A    public int getSize() %7B%0A        return size;%0A    %7D%0A%0A    public void setSize(int size) %7B%0A        this.size = size;%0A    %7D%0A%0A    public int getPosition() %7B%0A        return position;%0A    %7D%0A%0A    public void setPosition(int position) %7B%0A        this.position = position;%0A    %7D%0A%0A    public int generateList(int max_list) %7B%0A%0A        for (int i = 1; i %3C= max_list; i++) %7B%0A%0A        %7D%0A%0A        return no_of_item;%0A%0A    %7D%0A
 %0A    pub

Revert "remove unnecessary methods in the ListHouse class"