Class Any
java.lang.Object
com.sun.star.uno.Any
The UNO IDL type any is mapped to java type
java.lang.Object
.
In special cases it is necessary to have an explicit any to additionally transport an exact type. For instance if you want to pass an object reference via an interprocess connection using an any, you should use this class to add an explicit interface type, so the remote counterpart doesn't need to invoke a queryInterface).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Any
Complete a UNOANY
(make sure it is wrapped up as anAny
instance).boolean
Indicates whether some other object is equal to this one.Gets the value within the any.getType()
Gets the type of the value within the any.int
hashCode()
Returns a hash code value for the object.toString()
Returns a string representation of the object.
-
Field Details
-
_type
-
_object
-
VOID
-
-
Constructor Details
-
Any
Deprecated.as of UDK 2.0Constructs a new any.- Parameters:
zInterface
- the type of the any.object
- the data of the any.
-
Any
-
-
Method Details
-
complete
Complete a UNOANY
(make sure it is wrapped up as anAny
instance).- Parameters:
any
- a Java value representing a UNOANY
value.- Returns:
- a complete Java value (that is, an
Any
instance) representing the same UNOANY
value as the given argument. - Since:
- UDK 3.2.3
-
getType
Gets the type of the value within the any.- Returns:
- the type of the value within the any.
-
getObject
-
equals
-
hashCode
-
toString
-