Constructor and Description |
---|
Result(Object responseData)
Constructs a "result" from data found in
ResponseResult.getData() . |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(Class<? extends T> clazz)
Gets the result item by casting it to the specified
Class . |
boolean |
getBoolean()
Gets the result item by coercing it to an
boolean . |
byte |
getByte()
Gets the result item by coercing it to an
byte . |
double |
getDouble()
Gets the result item by coercing it to an
double . |
Edge |
getEdge()
Gets the result item by casting it to an
Edge . |
Element |
getElement()
Gets the result item by casting it to an
Element . |
float |
getFloat()
Gets the result item by coercing it to an
float . |
int |
getInt()
Gets the result item by coercing it to an
int . |
long |
getLong()
Gets the result item by coercing it to an
long . |
Object |
getObject()
Gets the result item.
|
Path |
getPath()
Gets the result item by casting it to a
Path . |
<V> Property<V> |
getProperty()
Gets the result item by casting it to a
Property . |
short |
getShort()
Gets the result item by coercing it to an
short . |
String |
getString()
Gets the result item by coercing it to a
String via toString() . |
Vertex |
getVertex()
Gets the result item by casting it to a
Vertex . |
<V> VertexProperty<V> |
getVertexProperty()
Gets the result item by casting it to a
VertexProperty . |
boolean |
isNull()
Determines if the result item is null or not.
|
String |
toString() |
public Result(Object responseData)
ResponseResult.getData()
.public String getString()
String
via toString()
.public int getInt()
int
.NumberFormatException
- if the value is not parsable as an int
.public byte getByte()
byte
.NumberFormatException
- if the value is not parsable as an byte
.public short getShort()
short
.NumberFormatException
- if the value is not parsable as an short
.public long getLong()
long
.NumberFormatException
- if the value is not parsable as an long
.public float getFloat()
float
.NumberFormatException
- if the value is not parsable as an float
.public double getDouble()
double
.NumberFormatException
- if the value is not parsable as an double
.public boolean getBoolean()
boolean
.NumberFormatException
- if the value is not parsable as an boolean
.public boolean isNull()
NullPointerException
if the result item is
null
.public <V> VertexProperty<V> getVertexProperty()
VertexProperty
.public <T> T get(Class<? extends T> clazz)
Class
.public Object getObject()
Copyright © 2013–2017 Apache Software Foundation. All rights reserved.