public class Response extends Object implements Iterable<Response>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<Response> |
__TYPE_ARG |
Constructor and Description |
---|
Response(Object delegate) |
Response(Response delegate) |
Modifier and Type | Method and Description |
---|---|
Map<String,Response> |
attributes()
RESP3 responses may include attributes
|
boolean |
containsKey(String key)
Does this multi response contains a string key.
|
boolean |
equals(Object o) |
String |
format()
RESP3 Verbatim Bulk message include a 3 character format.
|
Response |
get(int index)
Get this multi response value at a numerical index.
|
Response |
get(String key)
Get this multi response value at a string key.
|
Response |
getDelegate() |
Set<String> |
getKeys()
Get this multi response keys from a hash.
|
int |
hashCode() |
boolean |
isArray()
Returns whether this multi response is an array and hence
get(int) can be called. |
boolean |
isMap()
Returns whether this multi response is a map and hence
get(int) ,
containsKey(java.lang.String) and getKeys() may be called. |
Iterator<Response> |
iterator() |
static Response |
newInstance(Response arg) |
int |
size()
Get this size of this multi response.
|
BigInteger |
toBigInteger()
Get this response as a BigInteger.
|
Boolean |
toBoolean()
Get this response as a Boolean.
|
Buffer |
toBuffer()
Get this response as Buffer.
|
Byte |
toByte()
Get this response as a Byte.
|
byte[] |
toBytes()
Get this response as a byte[].
|
Double |
toDouble()
Get this response as a Double.
|
Float |
toFloat()
Get this response as a Float.
|
Integer |
toInteger()
Get this response as a Integer.
|
Long |
toLong()
Get this response as a Long.
|
Number |
toNumber()
Get this response as a Number.
|
Short |
toShort()
Get this response as a Short.
|
String |
toString()
Get this response as a String.
|
String |
toString(Charset encoding)
Get this response as a String encoded with the given charset.
|
ResponseType |
type()
The response return type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final io.vertx.lang.rx.TypeArg<Response> __TYPE_ARG
public Response(Response delegate)
public Response(Object delegate)
public Response getDelegate()
public ResponseType type()
public Map<String,Response> attributes()
public String toString()
public String format()
public Double toDouble()
public Float toFloat()
public Long toLong()
public Integer toInteger()
public Short toShort()
public Byte toByte()
public Boolean toBoolean()
public Buffer toBuffer()
public Response get(int index)
index
- the required index.public Response get(String key)
key
- the required key.public boolean containsKey(String key)
key
- the required key.public Set<String> getKeys()
public int size()
public boolean isArray()
get(int)
can be called.
Returns true
also for and .
public boolean isMap()
get(int)
,
containsKey(java.lang.String)
and getKeys()
may be called.
Returns true
also for .
public Number toNumber()
public BigInteger toBigInteger()
public String toString(Charset encoding)
encoding
- public byte[] toBytes()
Copyright © 2024 Eclipse. All rights reserved.