public class NamedVehicleMessage extends KeyedMessage
VehicleMessage.Listener
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
NAME_KEY |
CREATOR, EXTRAS_KEY
Modifier | Constructor and Description |
---|---|
protected |
NamedVehicleMessage() |
|
NamedVehicleMessage(java.lang.Long timestamp,
java.lang.String name) |
protected |
NamedVehicleMessage(android.os.Parcel in) |
|
NamedVehicleMessage(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VehicleMessage other) |
static boolean |
containsRequiredFields(java.util.Set<java.lang.String> fields) |
boolean |
equals(java.lang.Object obj) |
MessageKey |
getKey()
Return the identifying key for this message.
|
java.lang.String |
getName() |
protected void |
readFromParcel(android.os.Parcel in) |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel out,
int flags) |
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 NAME_KEY
public NamedVehicleMessage(java.lang.String name)
public NamedVehicleMessage(java.lang.Long timestamp, java.lang.String name)
protected NamedVehicleMessage(android.os.Parcel in)
protected NamedVehicleMessage()
public java.lang.String getName()
public int compareTo(VehicleMessage other)
compareTo
in interface java.lang.Comparable<VehicleMessage>
compareTo
in class VehicleMessage
public boolean equals(java.lang.Object obj)
equals
in class VehicleMessage
public MessageKey getKey()
KeyedMessage
getKey
in class KeyedMessage
public static boolean containsRequiredFields(java.util.Set<java.lang.String> fields)
public java.lang.String toString()
toString
in class VehicleMessage
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class VehicleMessage
protected void readFromParcel(android.os.Parcel in)
readFromParcel
in class VehicleMessage