public class WebSocketMessageImpl extends ByteArrayBody implements WebSocketMessage
Constructor and Description |
---|
WebSocketMessageImpl(Context ctx,
byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
<T> T |
to(Type type)
Convert this body into the given type.
|
bytes, channel, empty, get, get, getSize, isInMemory, name, stream, toList, toMultimap, value
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, create
array, booleanValue, booleanValue, byteValue, byteValue, create, create, doubleValue, doubleValue, floatValue, floatValue, hash, intValue, intValue, isArray, isMissing, isObject, isSingle, longValue, longValue, missing, name, to, toEnum, toEnum, toList, toList, toMap, toMultimap, toOptional, toOptional, toSet, toSet, value, value, value, value, valueOrNull
iterator, resolve, resolve, resolve, resolve, size
forEach, spliterator
public WebSocketMessageImpl(Context ctx, byte[] bytes)
@Nonnull public <T> T to(@Nonnull Type type)
Body
to
in interface Body
to
in interface WebSocketMessage
to
in class ByteArrayBody
T
- Generic type.type
- Type to use.Copyright © 2020. All rights reserved.