Package com.sun.star.uno
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
-
Constructor Summary
-
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
The type of the any.- See Also:
-
_object
The data of the any.- See Also:
-
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
Constructs a new any with a given type and value- Parameters:
type
- the UNO type of the any.object
- the value of the 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
Gets the value within the any.- Returns:
- gets the value within the any.
-
equals
Indicates whether some other object is equal to this one. -
hashCode
public int hashCode()Returns a hash code value for the object. -
toString
Returns a string representation of the object.
-