goog.module('typewildcards.Function$impl');

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

let $LambdaAdaptor = goog.forwardDeclare('typewildcards.Function.$LambdaAdaptor$impl');

/**
 * @interface
 * @template I, O
 */
class typewildcards_Function {
 /** @abstract @nodts @return {O} */
 m_apply__java_lang_Object__java_lang_Object(/** I */ i) {}
 /** @nodts @template I, O @return {!typewildcards_Function<I, O>} */
 static $adapt(/** ?function(I):O */ fn) {
  typewildcards_Function.$clinit();
  return /**@type {!$LambdaAdaptor<I, O>}*/ (new $LambdaAdaptor(fn));
 }
 /** @nodts */
 static $clinit() {
  typewildcards_Function.$clinit = () =>{};
  typewildcards_Function.$loadModules();
 }
 
 static $markImplementor(/** Function */ ctor) {
  ctor.prototype.$implements__typewildcards_Function = true;
 }
 /** @nodts @return {boolean} */
 static $isInstance(/** ? */ instance) {
  return instance != null && !!instance.$implements__typewildcards_Function;
 }
 
 /** @nodts */
 static $loadModules() {
  $LambdaAdaptor = goog.module.get('typewildcards.Function.$LambdaAdaptor$impl');
 }
}
typewildcards_Function.$markImplementor(/**@type {Function}*/ (typewildcards_Function));
$Util.$setClassMetadataForInterface(/**@type {Function}*/ (typewildcards_Function), 'typewildcards.Function');

exports = typewildcards_Function;

//# sourceMappingURL=Function.js.map
