class MemoryLocalStorage extends Object
Modifier and Type | Field and Description |
---|---|
private List<Category> |
categories |
private List<Commodity> |
commodities |
private int |
localVersion |
private List<Product> |
products |
private SellerInfo |
seller |
private boolean |
sellerIsSynced |
private SyncVersionInfo |
syncInfo |
private List<Tax> |
taxes |
Constructor and Description |
---|
MemoryLocalStorage() |
Modifier and Type | Method and Description |
---|---|
void |
add(Category cat) |
void |
add(Commodity c) |
void |
add(Product p) |
void |
add(Tax tax) |
List<Category> |
getCategories() |
Category |
getCategoryByIdentifier(String identifier) |
List<Commodity> |
getCommodities() |
Commodity |
getCommodityByIdentifier(String identifier) |
int |
getLocalVersion() |
Product |
getProductByIdentifier(String identifier) |
List<Product> |
getProducts() |
SellerInfo |
getSeller() |
SyncVersionInfo |
getSyncInfo() |
Tax |
getTaxByIdentifier(String identifier) |
List<Tax> |
getTaxes() |
boolean |
isSellerSynced() |
void |
setCategories(List<Category> categories) |
void |
setCommodities(List<Commodity> commodities) |
void |
setProducts(List<Product> products) |
void |
setSeller(SellerInfo seller) |
void |
setSellerSynced(boolean sellerSynced) |
void |
setTaxes(List<Tax> taxes) |
String |
toString() |
private SellerInfo seller
private boolean sellerIsSynced
private int localVersion
private SyncVersionInfo syncInfo
public SyncVersionInfo getSyncInfo()
public int getLocalVersion()
public SellerInfo getSeller()
public void setSeller(SellerInfo seller)
public boolean isSellerSynced()
public void setSellerSynced(boolean sellerSynced)
public void add(Product p)
public void add(Tax tax)
public void add(Category cat)
public void add(Commodity c)
Copyright © 2015. All rights reserved.