SequenceableCdmaSignalInformation, GsmSignalInformation, LteSignalInformation, NrSignalInformation, TdscdmaSignalInformation, WcdmaSignalInformationpublic abstract class SignalInformation extends Object implements Sequenceable
Based on the network types defined by getNetworkType(), which are GSM, CDMA, WCDMA, TD-SCDMA, LTE, and NR,
the parent class contains the following child classes, which inherit from the parent class:
Sequenceable.Producer<T>| 限定符 | 构造器 | 说明 |
|---|---|---|
protected |
SignalInformation(int signalType) |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
equals(Object other) |
Checks whether the values of each member in the two objects are the same.
|
int |
getNetworkType() |
Obtains the network type of the current signal.
|
abstract int |
getSignalLevel() |
Obtains the signal level of the current network.
|
int |
hashCode() |
Obtains the object's hash code, which is used as an index value to search for objects in
Hashtable
and HashMap. |
boolean |
marshalling(Parcel dest) |
Packs all the members in the class into a parcel object.
|
boolean |
unmarshalling(Parcel in) |
Unpacks all the members of the class from a parcel object.
|
hasFileDescriptorpublic int getNetworkType()
An application can call this method to determine the network type that the child class uses.
public abstract int getSignalLevel()
This is an abstract method of the parent class whose implementation varies in child classes.
public int hashCode()
Hashtable
and HashMap.hashCode 在类中 ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)public boolean equals(Object other)
equals 在类中 Objectother - Indicates the reference object with which to compare.true if the values of each member in the two objects are the same;
returns false otherwise.Object.hashCode(),
HashMappublic boolean marshalling(Parcel dest)
marshalling 在接口中 Sequenceabledest - Indicates the target parcel into which the members are packed.true if the packing is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
unmarshalling 在接口中 Sequenceablein - Indicates the parcel object to be unpacked.true if the unpacking is successful; returns false otherwise.