| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final T |
| Access | Constructor and Description |
|---|---|
| pack-priv | AbstractWebSocketMessage(T
the non-null payload payload)Create a new WebSocket message with the given payload. |
| pack-priv | AbstractWebSocketMessage(T
the non-null payload payload, boolean if the message is the last of a series of partial messages isLast)Create a new WebSocket message given payload representing the full or partial message content. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public T | getPayload()
Implements org. Return the message payload (never |
| public int | |
| public boolean | isLast()
Implements org. Whether this is the last part of a message sent as a series of partial messages. |
| public String | |
| protected abstract String |
| last | back to summary |
|---|---|
| private final boolean last | |
| payload | back to summary |
|---|---|
| private final T payload | |
| AbstractWebSocketMessage | back to summary |
|---|---|
| pack-priv AbstractWebSocketMessage(T payload) Create a new WebSocket message with the given payload.
| |
| AbstractWebSocketMessage | back to summary |
|---|---|
| pack-priv AbstractWebSocketMessage(T payload, boolean isLast) Create a new WebSocket message given payload representing the full or partial
message content. When the
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getPayload | back to summary |
|---|---|
| public T getPayload() Implements org. Return the message payload (never
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isLast | back to summary |
|---|---|
| public boolean isLast() Implements org. Whether this is the last part of a message sent as a series of partial messages.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toStringPayload | back to summary |
|---|---|
| protected abstract String toStringPayload() | |