/*
 * 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 {

    public int no_of_item;
    public int[] list;
    private static final int max_list = 5;
    public int size;
    public int position;

    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 int getNo_of_item() {
        return no_of_item;
    }

    public void setNo_of_item(int no_of_item) {
        this.no_of_item = no_of_item;
    }

    public int[] getList() {
        return list;
    }

    public void setList(int[] list) {
        this.list = list;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public int generateList(int max_list) {

        for (int i = 1; i <= max_list; i++) {

        }

        return no_of_item;

    }

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

}

@@ -281,146 +281,8 @@
  %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  
@@ -786,705 +786,8 @@
  %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   

Revert "Revert "remove unnecessary methods in the ListHouse class""