public interface Response extends Iterable<Response>
Modifier and Type | Method and Description |
---|---|
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 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 Integer |
toInteger()
Get this response as a Integer.
|
default Long |
toLong()
Get this response as a Long.
|
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()
String toString()
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 Set<String> getKeys()
default int size()
default Iterator<Response> iterator()
default java.util.stream.Stream<Response> stream()
Copyright © 2023 Eclipse. All rights reserved.