ohos.utils.Sequenceablepublic class BandConfig
extends java.lang.Object
implements ohos.utils.Sequenceable
| 构造器 | 说明 |
|---|---|
BandConfig() |
A no-argument constructor used to create a
BandConfig instance. |
BandConfig(int lowerLimit,
int upperLimit,
int type,
int region,
int spacing) |
A constructor used to create a
BandConfig instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getLowerLimit() |
Obtains the lower frequency of the band.
|
int |
getRegion() |
Obtains the band region.
|
int |
getSpacing() |
Obtains the channel spacing.
|
int |
getType() |
Obtains the band type.
|
int |
getUpperLimit() |
Obtains the maximum frequency of the band.
|
boolean |
marshalling(ohos.utils.Parcel out) |
Marshals a
BandConfig object into a Parcel. |
void |
setLowerLimit(int lowerLimit) |
Sets the lower frequency of the band.
|
void |
setRegion(int region) |
Sets the band region.
|
void |
setSpacing(int spacing) |
Sets the channel spacing.
|
void |
setType(int type) |
Sets the band type.
|
void |
setUpperLimit(int upperLimit) |
Sets the upper frequency of the band.
|
boolean |
unmarshalling(ohos.utils.Parcel in) |
Unmarshals a
BandConfig object from a Parcel. |
public BandConfig()
BandConfig instance.public BandConfig(int lowerLimit,
int upperLimit,
int type,
int region,
int spacing)
BandConfig instance.lowerLimit - Indicates the lower frequency of the band.upperLimit - Indicates the maximum frequency of the band.type - Indicates the band type.region - Indicates the band region.spacing - Indicates the channel spacing.public int getLowerLimit()
public int getUpperLimit()
public int getType()
public int getRegion()
public int getSpacing()
public void setLowerLimit(int lowerLimit)
lowerLimit - Indicates the lower frequency to set.public void setUpperLimit(int upperLimit)
upperLimit - Indicates the upper frequency to set.public void setType(int type)
type - Indicates the band type to set.public void setRegion(int region)
region - Indicates the band region to set.public void setSpacing(int spacing)
spacing - Indicates the channel spacing to set.public boolean marshalling(ohos.utils.Parcel out)
BandConfig object into a Parcel.marshalling 在接口中 ohos.utils.Sequenceableout - Indicates the Parcel object into which the
BandConfig object will be written.true if marshalling is successful; returns
false otherwise.public boolean unmarshalling(ohos.utils.Parcel in)
BandConfig object from a Parcel.unmarshalling 在接口中 ohos.utils.Sequenceablein - Indicates the Parcel object into which the
BandConfig object has been written.true if unmarshalling is successful; returns
false otherwise.