RRRRHHHH_Code
Diff Revisions
cff7b0 ...
vs
5761bc ...
for ruralHouses/src/domain/RuralHouse.java
|
@@ -97,18 +97,7 @@ |
97 |
97 |
|
return false; |
98 |
98 |
|
return true; |
99 |
99 |
|
} |
100 |
|
- |
|
101 |
|
- |
public String getAccountNumber(int houseName) { |
102 |
|
- |
/*try { |
103 |
|
- |
dbMngr=DBManager.getInstance(); |
104 |
|
- |
return dbMngr.getOwner(houseName).getBankAccount(); |
105 |
100 |
|
|
106 |
|
- |
} catch (Exception e) { |
107 |
|
- |
System.out.println("Error, accessing to DB Manager: " |
108 |
|
- |
+ e.toString()); |
109 |
|
- |
return null; |
110 |
|
- |
}*/ return null; |
111 |
|
- |
} |
112 |
101 |
|
|
113 |
102 |
|
/** |
114 |
103 |
|
* This method obtains available offers for a concrete house in a certain period |
|
@@ -166,7 +155,8 @@ |
166 |
155 |
|
Offer offer=null; |
167 |
156 |
|
while (e.hasNext()){ |
168 |
157 |
|
offer=e.next(); |
169 |
|
- |
if ( (offer.getFirstDay().compareTo(lastDay)<0) && (offer.getLastDay().compareTo(firstDay)>0)) |
|
158 |
+ |
if ( (offer.getFirstDay().compareTo(lastDay)<0) |
|
159 |
+ |
&& (offer.getLastDay().compareTo(firstDay)>0)) |
170 |
160 |
|
return offer; |
171 |
161 |
|
} |
172 |
162 |
|
return null; |