public class ServiceRuntimeList extends ru.bitel.common.util.AbstractPeriodItemSet<ServiceRuntimeList.ServiceItem>
Modifier and Type | Class and Description |
---|---|
static class |
ServiceRuntimeList.ServiceItem |
Modifier and Type | Method and Description |
---|---|
protected boolean |
containsMillis(ServiceRuntimeList.ServiceItem item,
long millis) |
long |
getTimeFrom(int serviceId) |
protected boolean |
isCoincide(ServiceRuntimeList.ServiceItem item,
ServiceRuntimeList.ServiceItem other) |
ServiceRuntimeList.ServiceItem |
itemByServiceId(int serviceId) |
ServiceRuntimeList.ServiceItem[] |
items() |
java.util.List<ServiceRuntimeList.ServiceItem> |
listByProductId(int productId) |
java.util.List<ServiceRuntimeList.ServiceItem> |
listEndingAt(long millis) |
static ServiceRuntimeList |
newInstance(java.util.List<Service> serviceList) |
java.util.Map<java.lang.Integer,java.lang.Integer> |
optionMap(long date1,
long date2) |
ServiceRuntimeList |
update(int productId,
java.util.List<Service> newServiceList) |
void |
updateState(int serviceId,
short deviceState) |
public java.util.List<ServiceRuntimeList.ServiceItem> listEndingAt(long millis)
public java.util.List<ServiceRuntimeList.ServiceItem> listByProductId(int productId)
protected boolean containsMillis(ServiceRuntimeList.ServiceItem item, long millis)
containsMillis
in class ru.bitel.common.util.AbstractPeriodItemSet<ServiceRuntimeList.ServiceItem>
protected boolean isCoincide(ServiceRuntimeList.ServiceItem item, ServiceRuntimeList.ServiceItem other)
isCoincide
in class ru.bitel.common.util.AbstractPeriodItemSet<ServiceRuntimeList.ServiceItem>
public long getTimeFrom(int serviceId)
public java.util.Map<java.lang.Integer,java.lang.Integer> optionMap(long date1, long date2)
public ServiceRuntimeList.ServiceItem itemByServiceId(int serviceId)
public static ServiceRuntimeList newInstance(java.util.List<Service> serviceList)
public ServiceRuntimeList.ServiceItem[] items()
public ServiceRuntimeList update(int productId, java.util.List<Service> newServiceList)
public void updateState(int serviceId, short deviceState)