public final class ChannelAccessMessageHeader extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Tells whether the specified object represents the same message header.
|
int |
getCID()
Returns the value of the header's "cid" field.
|
short |
getCommand()
Returns the value of the header's "command" field.
|
int |
getContextSpecific()
Returns the value of the header's "available" field.
|
int |
getCount()
Returns the value of the header's "count" field.
|
short |
getDataType()
Returns the value of the header's "dataType" field.
|
int |
getHeaderSize()
Returns the size of the serialized form of this header in bytes.
|
int |
getPayloadSize()
Returns the value of the header's "postsize" field.
|
int |
hashCode()
Returns a hash code value for this message header.
|
String |
toString()
Returns a string representation of this message header.
|
public short getCommand()
public int getPayloadSize()
public short getDataType()
public int getCount()
public int getCID()
public int getContextSpecific()
public int hashCode()
Returns a hash code value for this message header. This method is supported for the benefit of hash tables. The hash code is calculated as a combination of the hash codes of the header fields, including the command and the header size (even though the latter is technically not a header field).
If two header are equal (as indicated by the return value of
equals(Object)
), they also have the same hash code. However, the
fact that two header have the same hash code does not imply that they are
equal.
public boolean equals(Object obj)
Tells whether the specified object represents the same message header.
Two headers are considered equal if they are of the same type and have the same headers and payload. For comparing the types, the actual Java type and not just the Channel Access command is compared.
equals
in class Object
obj
- reference object with which this object is compared.true
if obj
is a message that is of the
same type and has the same headers and payload as this message.
false
if obj
is null
or of
a different type than this message or differs in the headers or
payload.public String toString()
public int getHeaderSize()
Copyright © 2014–2017 aquenos GmbH. All rights reserved.