public class SimpleVehicleMessage extends NamedVehicleMessage
VehicleMessage.Listener
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
VALUE_KEY |
NAME_KEY
CREATOR, EXTRAS_KEY
Modifier | Constructor and Description |
---|---|
protected |
SimpleVehicleMessage() |
|
SimpleVehicleMessage(java.lang.Long timestamp,
java.lang.String name,
java.lang.Object value) |
protected |
SimpleVehicleMessage(android.os.Parcel in) |
|
SimpleVehicleMessage(java.lang.String name,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsRequiredFields(java.util.Set<java.lang.String> fields) |
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getValue() |
java.lang.Boolean |
getValueAsBoolean() |
java.lang.Number |
getValueAsNumber() |
java.lang.String |
getValueAsString() |
void |
readFromParcel(android.os.Parcel in) |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel out,
int flags) |
compareTo, getKey, getName
setKey
asCanMessage, asCommandResponse, asDiagnosticRequest, asDiagnosticResponse, asEventedMessage, asKeyedMessage, asNamedMessage, asSimpleMessage, describeContents, getDate, getExtras, getTimestamp, hasExtras, isTimestamped, setExtras, setTimestamp, timestamp, untimestamp
protected static final java.lang.String VALUE_KEY
public SimpleVehicleMessage(java.lang.Long timestamp, java.lang.String name, java.lang.Object value)
public SimpleVehicleMessage(java.lang.String name, java.lang.Object value)
protected SimpleVehicleMessage(android.os.Parcel in)
protected SimpleVehicleMessage()
public java.lang.Object getValue()
public java.lang.Number getValueAsNumber()
public java.lang.String getValueAsString()
public java.lang.Boolean getValueAsBoolean()
public static boolean containsRequiredFields(java.util.Set<java.lang.String> fields)
public boolean equals(java.lang.Object obj)
equals
in class NamedVehicleMessage
public java.lang.String toString()
toString
in class NamedVehicleMessage
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class NamedVehicleMessage
public void readFromParcel(android.os.Parcel in)
readFromParcel
in class NamedVehicleMessage