public static final class ServiceRuntimeList.ServiceItem
extends ru.bitel.common.util.AbstractPeriodItemSet.PeriodItem
implements java.util.concurrent.Delayed
Modifier and Type | Field and Description |
---|---|
short |
deviceState |
int |
serviceId |
int |
serviceSpecId |
int |
version |
Constructor and Description |
---|
ServiceItem(int productId,
int serviceSpecId,
int serviceId,
java.util.Date timeFrom,
java.util.Date timeTo) |
ServiceItem(int productId,
int serviceSpecId,
int serviceId,
long timeFrom,
long timeTo) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.util.concurrent.Delayed other) |
long |
getDelay(java.util.concurrent.TimeUnit unit) |
Service |
toService(int contractId,
int accountId) |
java.lang.StringBuilder |
toString(java.lang.StringBuilder sb) |
public final int serviceSpecId
public final int serviceId
public volatile short deviceState
public volatile int version
public ServiceItem(int productId, int serviceSpecId, int serviceId, java.util.Date timeFrom, java.util.Date timeTo)
public ServiceItem(int productId, int serviceSpecId, int serviceId, long timeFrom, long timeTo)
public long getDelay(java.util.concurrent.TimeUnit unit)
getDelay
in interface java.util.concurrent.Delayed
public int compareTo(java.util.concurrent.Delayed other)
compareTo
in interface java.lang.Comparable<java.util.concurrent.Delayed>
public Service toService(int contractId, int accountId)
public java.lang.StringBuilder toString(java.lang.StringBuilder sb)
toString
in class ru.bitel.common.util.AbstractPeriodItemSet.PeriodItem