mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-16 10:48:46 +00:00
Update Item to contract
Make Item conform to the Lambdas
This commit is contained in:
parent
c9c07607b6
commit
d071a0ceb3
@ -1,7 +1,6 @@
|
|||||||
package com.example.listify.data;
|
package com.example.listify.data;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
public class Item {
|
public class Item {
|
||||||
Integer productID;
|
Integer productID;
|
||||||
@ -11,11 +10,11 @@ public class Item {
|
|||||||
BigDecimal price;
|
BigDecimal price;
|
||||||
String imageURL;
|
String imageURL;
|
||||||
String department;
|
String department;
|
||||||
LocalDateTime retrievedDate;
|
long retrievedDate;
|
||||||
Integer fetchCounts;
|
Integer fetchCounts;
|
||||||
|
|
||||||
public Item(Integer productID, Integer chainID, String upc, String description, BigDecimal price,
|
public Item(Integer productID, Integer chainID, String upc, String description, BigDecimal price,
|
||||||
String imageURL, String department, LocalDateTime retrievedDate, Integer fetchCounts) {
|
String imageURL, String department, long retrievedDate, Integer fetchCounts) {
|
||||||
this.productID = productID;
|
this.productID = productID;
|
||||||
this.chainID = chainID;
|
this.chainID = chainID;
|
||||||
this.upc = upc;
|
this.upc = upc;
|
||||||
@ -37,7 +36,7 @@ public class Item {
|
|||||||
", price=" + price +
|
", price=" + price +
|
||||||
", imageURL='" + imageURL + '\'' +
|
", imageURL='" + imageURL + '\'' +
|
||||||
", department='" + department + '\'' +
|
", department='" + department + '\'' +
|
||||||
", retrievedDate=" + (retrievedDate == null ? null : retrievedDate) +
|
", retrievedDate=" + retrievedDate +
|
||||||
", fetchCounts=" + fetchCounts +
|
", fetchCounts=" + fetchCounts +
|
||||||
'}';
|
'}';
|
||||||
}
|
}
|
||||||
@ -98,11 +97,11 @@ public class Item {
|
|||||||
this.department = department;
|
this.department = department;
|
||||||
}
|
}
|
||||||
|
|
||||||
public LocalDateTime getRetrievedDate() {
|
public long getRetrievedDate() {
|
||||||
return retrievedDate;
|
return retrievedDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRetrievedDate(LocalDateTime retrievedDate) {
|
public void setRetrievedDate(long retrievedDate) {
|
||||||
this.retrievedDate = retrievedDate;
|
this.retrievedDate = retrievedDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user