Class ProductRuntimeList
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.common.util.AbstractPeriodItemSet<ProductRuntimeList.ProductItem>
ru.bitel.bgbilling.modules.tv.server.runtime.ProductRuntimeList
public class ProductRuntimeList
extends ru.bitel.common.util.AbstractPeriodItemSet<ProductRuntimeList.ProductItem>
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bitel.common.util.AbstractPeriodItemSet
ru.bitel.common.util.AbstractPeriodItemSet.PeriodItem
-
Field Summary
Fields inherited from class ru.bitel.common.util.AbstractPeriodItemSet
entries
-
Method Summary
Modifier and TypeMethodDescriptionadd
(int productSpecId, int productId, int activationModeId, Date timeFrom, Date timeTo, short state) protected boolean
containsMillis
(ProductRuntimeList.ProductItem item, long millis) long
getTimeFrom
(int productId) protected boolean
itemByProductId
(int productId) items()
listEndingAt
(long millis) mapByProductId
(long date1, long date2) static ProductRuntimeList
newInstance
(List<Product> productList) optionMap
(long date1, long date2) update
(int productSpecId, int productId, int activationModeId, Date timeFrom, Date timeTo, short state) protected ProductRuntimeList.ProductItem[]
update
(ProductRuntimeList.ProductItem newItem) void
updateState
(int productId, short deviceState) Methods inherited from class ru.bitel.common.util.AbstractPeriodItemSet
add, contains, contains, containsAll, containsAll, count, count, countMillis, countMillis, get, item, items, items, items, map, nextActivateTime, remove, size, toString
Methods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError
-
Method Details
-
listEndingAt
-
containsMillis
- Overrides:
containsMillis
in classru.bitel.common.util.AbstractPeriodItemSet<ProductRuntimeList.ProductItem>
-
isCoincide
protected boolean isCoincide(ProductRuntimeList.ProductItem item, ProductRuntimeList.ProductItem other) - Overrides:
isCoincide
in classru.bitel.common.util.AbstractPeriodItemSet<ProductRuntimeList.ProductItem>
-
getTimeFrom
public long getTimeFrom(int productId) -
optionMap
-
add
public ProductRuntimeList add(int productSpecId, int productId, int activationModeId, Date timeFrom, Date timeTo, short state) -
update
public ProductRuntimeList update(int productSpecId, int productId, int activationModeId, Date timeFrom, Date timeTo, short state) -
update
- Overrides:
update
in classru.bitel.common.util.AbstractPeriodItemSet<ProductRuntimeList.ProductItem>
-
remove
public ProductRuntimeList remove(int productSpecId, int productId, int activationModeId, Date timeFrom, Date timeTo) -
itemByProductId
-
newInstance
-
items
-
updateState
public void updateState(int productId, short deviceState) -
mapByProductId
-