public static final class ProductRuntimeList.ProductItem
extends ru.bitel.common.util.AbstractPeriodItemSet.PeriodItem
implements java.util.concurrent.Delayed
Modifier and Type | Field and Description |
---|---|
int |
activationModeId |
short |
deviceState |
int |
productId |
int |
version |
Constructor and Description |
---|
ProductItem(int productSpecId,
int productId,
int activationModeId,
java.util.Date timeFrom,
java.util.Date timeTo,
short deviceState) |
ProductItem(int productSpecId,
int productId,
int activationModeId,
long timeFrom,
long timeTo,
short deviceState) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.util.concurrent.Delayed other) |
long |
getDelay(java.util.concurrent.TimeUnit unit) |
Product |
toProduct(int contractId,
int accountId) |
java.lang.StringBuilder |
toString(java.lang.StringBuilder sb) |
public final int productId
public final int activationModeId
public volatile short deviceState
public volatile int version
public ProductItem(int productSpecId, int productId, int activationModeId, java.util.Date timeFrom, java.util.Date timeTo, short deviceState)
public ProductItem(int productSpecId, int productId, int activationModeId, long timeFrom, long timeTo, short deviceState)
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 Product toProduct(int contractId, int accountId)
public java.lang.StringBuilder toString(java.lang.StringBuilder sb)
toString
in class ru.bitel.common.util.AbstractPeriodItemSet.PeriodItem