goog.module('simplebridgemethods.Callable$impl');

const $Util = goog.require('nativebootstrap.Util$impl');

let $LambdaAdaptor = goog.forwardDeclare('simplebridgemethods.Callable.$LambdaAdaptor$impl');

/**
 * @interface
 * @template V
 */
class Callable {
 /** @abstract @nodts */
 m_call__java_lang_Object__void(/** V */ v) {}
 /** @nodts @template V @return {!Callable<V>} */
 static $adapt(/** ?function(V):void */ fn) {
  Callable.$clinit();
  return /**@type {!$LambdaAdaptor<V>}*/ (new $LambdaAdaptor(fn));
 }
 /** @nodts */
 static $clinit() {
  Callable.$clinit = () =>{};
  Callable.$loadModules();
 }
 
 static $markImplementor(/** Function */ ctor) {
  ctor.prototype.$implements__simplebridgemethods_Callable = true;
 }
 /** @nodts @return {boolean} */
 static $isInstance(/** ? */ instance) {
  return instance != null && !!instance.$implements__simplebridgemethods_Callable;
 }
 
 /** @nodts */
 static $loadModules() {
  $LambdaAdaptor = goog.module.get('simplebridgemethods.Callable.$LambdaAdaptor$impl');
 }
}
Callable.$markImplementor(/**@type {Function}*/ (Callable));
$Util.$setClassMetadataForInterface(/**@type {Function}*/ (Callable), 'simplebridgemethods.Callable');

exports = Callable;

//# sourceMappingURL=Callable.js.map
