public interface Response extends Iterable<Response>
Modifier and Type | Method and Description |
---|---|
default Map<String,Response> |
attributes()
RESP3 responses may include attributes
|
default boolean |
containsKey(String key)
Does this multi response contains a string key.
|
default String |
format()
RESP3 Verbatim Bulk message include a 3 character format.
|
default Response |
get(int index)
Get this multi response value at a numerical index.
|
default Response |
get(String key)
Get this multi response value at a string key.
|
default Set<String> |
getKeys()
Get this multi response keys from a hash.
|
default Iterator<Response> |
iterator()
Return an iterator so it can be iterated using the foreach construct.
|
default int |
size()
Get this size of this multi response.
|
default java.util.stream.Stream<Response> |
stream()
Return a stream of responses based on the iterable of this object.
|
default BigInteger |
toBigInteger()
Get this response as a BigInteger.
|
default Boolean |
toBoolean()
Get this response as a Boolean.
|
default Buffer |
toBuffer()
Get this response as Buffer.
|
default Byte |
toByte()
Get this response as a Byte.
|
default byte[] |
toBytes()
Get this response as a byte[].
|
default Double |
toDouble()
Get this response as a Double.
|
default Float |
toFloat()
Get this response as a Float.
|
default Integer |
toInteger()
Get this response as a Integer.
|
default Long |
toLong()
Get this response as a Long.
|
default Number |
toNumber()
Get this response as a Number.
|
default Short |
toShort()
Get this response as a Short.
|
String |
toString()
Get this response as a String.
|
default String |
toString(Charset encoding)
Get this response as a String encoded with the given charset.
|
ResponseType |
type()
The response return type.
|
forEach, spliterator
ResponseType type()
default Map<String,Response> attributes()
String toString()
default String format()
default Number toNumber()
default Double toDouble()
default Float toFloat()
default BigInteger toBigInteger()
default Long toLong()
default Integer toInteger()
default Short toShort()
default Byte toByte()
default Boolean toBoolean()
default String toString(Charset encoding)
default Buffer toBuffer()
default byte[] toBytes()
default Response get(int index)
index
- the required index.default Response get(String key)
key
- the required key.default boolean containsKey(String key)
key
- the required key.default Set<String> getKeys()
default int size()
default Iterator<Response> iterator()
default java.util.stream.Stream<Response> stream()
Copyright © 2022 Eclipse. All rights reserved.