@@ -0,0 +1,1776 @@
+package com.denver.citiestate.pojo;%0A%0Aimport com.denver.citiestate.interfaces.Listable;%0A%0Apublic class ListHouse implements Listable %7B%0A%0A%09private int lotNumber;%0A%09private String lastName;%0A%09private String firstName;%0A%09private int price;%0A%09private int squareFeet;%0A%09private int bedRooms;%0A%0A%09/**%0A%09 * %0A%09 * @param lotNumber%0A%09 * @param firstName%0A%09 * @param lastName%0A%09 * @param price%0A%09 * @param squareFeet%0A%09 * @param bedRooms%0A%09 */%0A%09public ListHouse(int lotNumber, String firstName, String lastName,%0A%09%09%09int price, int squareFeet, int bedRooms) %7B%0A%09%09super();%0A%09%09this.lastName = lastName;%0A%09%09this.firstName = firstName;%0A%09%09this.lotNumber = lotNumber;%0A%09%09this.price = price;%0A%09%09this.squareFeet = squareFeet;%0A%09%09this.bedRooms = bedRooms;%0A%09%7D%0A%0A%09public String getLastName() %7B%0A%09%09return lastName;%0A%09%7D%0A%0A%09public String getFirstName() %7B%0A%09%09return firstName;%0A%09%7D%0A%0A%09public int getLotNumber() %7B%0A%09%09return lotNumber;%0A%09%7D%0A%0A%09public int getPrice() %7B%0A%09%09return price;%0A%09%7D%0A%0A%09public int getSquareFeet() %7B%0A%09%09return squareFeet;%0A%09%7D%0A%0A%09public int getBedRooms() %7B%0A%09%09return bedRooms;%0A%09%7D%0A%0A%09/**%0A%09 * Compare two Listhouse from Lot numbers%0A%09 */%0A%09@Override%0A%09public int compareTo(Listable other) %7B%0A%0A%09%09ListHouse otherHouse = (ListHouse) other;%0A%09%09return (this.lotNumber - otherHouse.lotNumber);%0A%09%7D%0A%0A%09/**%0A%09 * Take a copy of ListHouse%0A%09 */%0A%09@Override%0A%09public Listable copy() %7B%0A%0A%09%09return new ListHouse(lotNumber, firstName, lastName, price, squareFeet,%0A%09%09%09%09bedRooms);%0A%09%7D%0A%0A%09/**%0A%09 * ListHouse to String%0A%09 */%0A%09@Override%0A%09public String toString() %7B%0A%09%09StringBuilder result = new StringBuilder();%0A%09%09String pipe = %22%7C%22;%0A%0A%09%09result.append(lotNumber + pipe);%0A%09%09result.append(firstName + pipe);%0A%09%09result.append(lastName + pipe);%0A%09%09result.append(price + pipe);%0A%09%09result.append(squareFeet + pipe);%0A%09%09result.append(bedRooms);%0A%0A%09%09return result.toString();%0A%09%7D%0A%0A%7D%0A

Add ListHouse pojo model class