public final class ContractTariffOptionList extends ru.bitel.common.util.AbstractPeriodItemSet<ContractTariffOptionList.OptionItem>
Modifier and Type | Class and Description |
---|---|
static class |
ContractTariffOptionList.OptionItem
AbstractPeriodItemSet.PeriodItem#id - это ID опции из справочника. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TARIFF_REQUEST_KEY |
Constructor and Description |
---|
ContractTariffOptionList(ContractTariffOptionList.OptionItem[] entries) |
ContractTariffOptionList(java.util.List<ContractTariffOptionList.OptionItem> entryList) |
Modifier and Type | Method and Description |
---|---|
ContractTariffOptionList |
add(int optionId,
int contractOptionId,
long timeFrom,
long timeTo) |
protected boolean |
containsMillis(ContractTariffOptionList.OptionItem item,
long millis) |
long |
getTimeFrom(int contractOptionId) |
protected boolean |
isCoincide(ContractTariffOptionList.OptionItem item,
ContractTariffOptionList.OptionItem other) |
java.util.List<ContractTariffOptionList.OptionItem> |
list(int optionId,
long timeFrom,
long timeTo)
Получение списка опций, время активности которых пересекается с указанным временем.
|
java.util.Map<java.lang.Integer,java.lang.Integer> |
optionMap(long date1,
long date2) |
ContractTariffOptionList |
remove(int optionId,
int contractOptionId,
long timeFrom,
long timeTo) |
ContractTariffOptionList |
update(int optionId,
int contractOptionId,
long timeFrom,
long timeTo) |
public static final java.lang.String TARIFF_REQUEST_KEY
public ContractTariffOptionList(java.util.List<ContractTariffOptionList.OptionItem> entryList)
public ContractTariffOptionList(ContractTariffOptionList.OptionItem[] entries)
protected boolean containsMillis(ContractTariffOptionList.OptionItem item, long millis)
containsMillis
in class ru.bitel.common.util.AbstractPeriodItemSet<ContractTariffOptionList.OptionItem>
protected boolean isCoincide(ContractTariffOptionList.OptionItem item, ContractTariffOptionList.OptionItem other)
isCoincide
in class ru.bitel.common.util.AbstractPeriodItemSet<ContractTariffOptionList.OptionItem>
public long getTimeFrom(int contractOptionId)
public java.util.Map<java.lang.Integer,java.lang.Integer> optionMap(long date1, long date2)
public ContractTariffOptionList add(int optionId, int contractOptionId, long timeFrom, long timeTo)
public ContractTariffOptionList update(int optionId, int contractOptionId, long timeFrom, long timeTo)
public ContractTariffOptionList remove(int optionId, int contractOptionId, long timeFrom, long timeTo)
public java.util.List<ContractTariffOptionList.OptionItem> list(int optionId, long timeFrom, long timeTo)
optionId
- timeFrom
- timeTo
-