public class ProductRuntimeList extends ru.bitel.common.util.AbstractPeriodItemSet<ProductRuntimeList.ProductItem>
Modifier and Type | Class and Description |
---|---|
static class |
ProductRuntimeList.ProductItem |
Modifier and Type | Method and Description |
---|---|
ProductRuntimeList |
add(int productSpecId,
int productId,
int activationModeId,
java.util.Date timeFrom,
java.util.Date timeTo,
short state) |
protected boolean |
containsMillis(ProductRuntimeList.ProductItem item,
long millis) |
long |
getTimeFrom(int productId) |
protected boolean |
isCoincide(ProductRuntimeList.ProductItem item,
ProductRuntimeList.ProductItem other) |
ProductRuntimeList.ProductItem |
itemByProductId(int productId) |
ProductRuntimeList.ProductItem[] |
items() |
java.util.List<ProductRuntimeList.ProductItem> |
listEndingAt(long millis) |
java.util.Map<java.lang.Integer,ProductRuntimeList.ProductItem> |
mapByProductId(long date1,
long date2) |
static ProductRuntimeList |
newInstance(java.util.List<Product> productList) |
java.util.Map<java.lang.Integer,java.lang.Integer> |
optionMap(long date1,
long date2) |
ProductRuntimeList |
remove(int productSpecId,
int productId,
int activationModeId,
java.util.Date timeFrom,
java.util.Date timeTo) |
ProductRuntimeList |
update(int productSpecId,
int productId,
int activationModeId,
java.util.Date timeFrom,
java.util.Date timeTo,
short state) |
protected ProductRuntimeList.ProductItem[] |
update(ProductRuntimeList.ProductItem newItem) |
void |
updateState(int productId,
short deviceState) |
public java.util.List<ProductRuntimeList.ProductItem> listEndingAt(long millis)
protected boolean containsMillis(ProductRuntimeList.ProductItem item, long millis)
containsMillis
in class ru.bitel.common.util.AbstractPeriodItemSet<ProductRuntimeList.ProductItem>
protected boolean isCoincide(ProductRuntimeList.ProductItem item, ProductRuntimeList.ProductItem other)
isCoincide
in class ru.bitel.common.util.AbstractPeriodItemSet<ProductRuntimeList.ProductItem>
public long getTimeFrom(int productId)
public java.util.Map<java.lang.Integer,java.lang.Integer> optionMap(long date1, long date2)
public ProductRuntimeList add(int productSpecId, int productId, int activationModeId, java.util.Date timeFrom, java.util.Date timeTo, short state)
public ProductRuntimeList update(int productSpecId, int productId, int activationModeId, java.util.Date timeFrom, java.util.Date timeTo, short state)
protected ProductRuntimeList.ProductItem[] update(ProductRuntimeList.ProductItem newItem)
update
in class ru.bitel.common.util.AbstractPeriodItemSet<ProductRuntimeList.ProductItem>
public ProductRuntimeList remove(int productSpecId, int productId, int activationModeId, java.util.Date timeFrom, java.util.Date timeTo)
public ProductRuntimeList.ProductItem itemByProductId(int productId)
public static ProductRuntimeList newInstance(java.util.List<Product> productList)
public ProductRuntimeList.ProductItem[] items()
public void updateState(int productId, short deviceState)
public java.util.Map<java.lang.Integer,ProductRuntimeList.ProductItem> mapByProductId(long date1, long date2)