int |
compareTo(AnyObject anyObject)
Compare this AnyObject with a given one.
Comparison result is :
ComparisonResult
this < anyObject-1
this == anyObject0
this > anyObject1
QiSignalConnection |
connect(QiSerializer serializer,
String signalName,
Object annotatedSlotContainer,
String slotName) |
QiSignalConnection |
connect(String signalName,
Object annotatedSlotContainer,
String slotName) |
QiSignalConnection |
connect(String signalName,
QiSignalListener listener) |
static Object |
decodeJSON(String str) |
static String |
encodeJSON(Object obj) |
boolean |
equals(Object object)
Indicates if given object is equals to this AnyObject
|
protected void |
finalize()
Called by garbage collector Finalize is overriden to manually delete C++
data
|
<T> Future<T> |
getProperty(Class<T> targetType,
String property) |
<T> Future<T> |
getProperty(QiSerializer serializer,
Class<T> targetType,
String property) |
<T> Future<T> |
getProperty(QiSerializer serializer,
Type targetType,
String property)
Retrieve the value of property asynchronously.
|
<T> Future<T> |
getProperty(Type targetType,
String property) |
int |
hashCode()
Returns a hash code value for this AnyObject.
|
void |
post(QiSerializer qiSerializer,
String eventName,
Object... args)
Post an event advertised with advertiseEvent method.
|
void |
post(String eventName,
Object... args)
Post an event advertised with advertiseEvent method.
|
<T> Future<T> |
property(String property) |
Future<Void> |
setProperty(QiSerializer valueConverter,
String propertyName,
Object newValue)
Sets the AnyObject property with the given name, using a serializer to convert the value.
|
Future<Void> |
setProperty(String propertyName,
Object newValue)
Sets a property of the AnyObject defined by a string, using the default serializer to convert the value.
|
String |
toString() |
-
-
Method Detail
-
setProperty
public Future<Void> setProperty(QiSerializer valueConverter,
String propertyName,
Object newValue)
Sets the AnyObject property with the given name, using a serializer to convert the value.
- Parameters:
valueConverter - A converter that transforms `newValue` into a property value.
propertyName - The property name.
newValue - The object to convert as the new property value.
Must not be null, unless the property value type is AnyObject.
- Returns:
- A future in error if the given value is null and the property value type is not `AnyObject`, or if
no property with this name could be found.
-
setProperty
public Future<Void> setProperty(String propertyName,
Object newValue)
Sets a property of the AnyObject defined by a string, using the default serializer to convert the value.
- Parameters:
propertyName - The property name.
newValue - The object to convert as the new property value.
Must not be null, unless the property value type is AnyObject.
- Returns:
- A future in error if the given value is null and the property value type is not `AnyObject`, or if
no property with this name could be found.
-
getProperty
public <T> Future<T> getProperty(QiSerializer serializer,
Type targetType,
String property)
Retrieve the value of property asynchronously. Tuples will be
converted to structs in the result, according to the targetType .
- Parameters:
targetType - the target result type
property - the property
- Returns:
- A future to the converted result.
-
call
public <T> Future<T> call(String method,
Object... args)
Perform asynchronous call and return Future return value
- Parameters:
method - Method name to call
args - Arguments to be forward to remote method
- Returns:
- Future method return value
- Throws:
DynamicCallException
-
call
public <T> Future<T> call(QiSerializer serializer,
Type targetType,
String method,
Object... args)
Convert structs in args to tuples if necessary, then call
method asynchronously. Tuples will be converted to structs in the
result, according to the targetType .
- Parameters:
targetType - the target result type
method - the method
args - the method arguments
- Returns:
- a future to the converted result
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Copyright © 2020. All rights reserved.
|