Top Constructors Methods
org.jabref.model.openoffice.uno

public Class UnoCast

extends Object
Class Inheritance
Imports
java.util.Optional, com.sun.star.uno.UnoRuntime

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <T> Optional<T>

Returns:

A reference to the requested UNO interface type if available, otherwise Optional.empty()
cast
(Class<T> zInterface, Object object)

cast : short for Optional.ofNullable(UnoRuntime.queryInterface(...))

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UnoCastback to summary
private UnoCast()

Method Detail

castback to summary
public static <T> Optional<T> cast(Class<T> zInterface, Object object)

cast : short for Optional.ofNullable(UnoRuntime.queryInterface(...))

Returns:Optional<T>

A reference to the requested UNO interface type if available, otherwise Optional.empty()