Wrote the Lambdas API for getting and deleting list sharees -- testing still needed

This commit is contained in:
Aaron Sun
2020-11-15 12:04:04 -08:00
parent 36ef81ce16
commit 5f14d24625
8 changed files with 189 additions and 12 deletions

View File

@@ -19,10 +19,6 @@ public class List {
this.shared = shared;
}
public void addItemEntry(ItemEntry entry) {
entries.add(entry);
}
@Override
public String toString() {
return "List{" +
@@ -34,10 +30,6 @@ public class List {
'}';
}
public ItemEntry[] getEntries() {
return entries.toArray(new ItemEntry[entries.size()]);
}
public Integer getItemID() {
return itemID;
}
@@ -77,4 +69,12 @@ public class List {
public void setShared(boolean shared) {
this.shared = shared;
}
public ItemEntry[] getEntries() {
return entries.toArray(new ItemEntry[entries.size()]);
}
public void addItemEntry(ItemEntry entry) {
entries.add(entry);
}
}