首页 \ 问答 \ 如何调用带有Void类型值的scala函数(How to call a scala function taking a value of Void type)

如何调用带有Void类型值的scala函数(How to call a scala function taking a value of Void type)

如何调用这样的scala函数?

def f(v: Void): Unit = {println(1)}

我还没有在Scala中找到Void类型的值。


How to call such a scala function?

def f(v: Void): Unit = {println(1)}

I haven't found a value of Void type in Scala yet.


原文:https://stackoverflow.com/questions/39735812
更新时间:2023-06-02 08:06

最满意答案

我找到了解决方案,所有问题都来自clipSubview,有必要从superView的red View中取消选中clipSubview。 事实证明,红色视图只是切断了自己的超级视图。


I found the solution, all problems were from clipSubview, it was necessary to uncheck clipSubview from superView of red View. It turns out, that red view simply cut off own superView.

相关问答

更多
  • 注意:截至本文,快速层仅在几天前推出。 但据我所知...... 新的快速图层是旧图层,但关闭了事件。 KineticJS文档说: 如果您不需要节点嵌套,鼠标和触摸交互或事件pub / sub,则应使用FastLayer而不是Layer来创建图层。 它渲染速度比普通图层快2倍。 快速图层用于不需要用户交互的图层: 静态背景图层,无需用户交互。 通过JS代码完全操作和绘制的静态层,无需用户交互。 绘制快速图层更快,因为没有与事件相关的开销。 普通图层还有一个支持屏幕外画布,支持命中测试和拖动。 我怀疑快速层没有 ...
  • 我删除了transrormLayer 。 并改变了操作顺序。 CATransform3D t = CATransform3DIdentity; t = CATransform3DConcat(bottomSide.transform, t); // cube side position t = CATransform3DConcat(rootLayer.sublayerTransform, t); // cube rotation and perspective testLayer.transform = ...
  • 实际上,5.3支持角色中的角色:)。 但不是在UI中。 查看/sitecore/admin/dbbrowser.aspx并切换到安全数据库。 角色项具有角色角色字段。 您可以通过添加ID,管道(|)分隔来添加角色。 Actually, 5.3 has support for roles in roles :). But not in the UI. Have a look at /sitecore/admin/dbbrowser.aspx and switch to the Security databas ...
  • 文件说明了这一点: 按索引迭代图层:IFPLayerManager类也是一个管理3ds Max中场景图层的接口类。 然而,该类是函数发布的接口,因此与先前讨论的层管理器完全不同。 此类是MAXScript LayerManager类的C ++接口。 这个类有一个有用的方法来返回一个整数索引的图层。 因此,您可以在不知道图层名称的情况下迭代场景图层。 要获取指向此对象的指针,请调用GetCOREInterface()函数。 IFPLayerManager* layer_manager = static_cas ...
  • 您可以直接在右侧视图中使用Plug-In Spy ( Alt + Shift + F1 )开始查看, ViewPart包含: 你可以在这里看到org.eclipse.jdt.internal.ui.callhierarchy.CallHierarchyViewPart的来源 You can start looking, with a Plug-In Spy (Alt+Shift+F1) directly in the right View, the ViewPart which is involved: Y ...
  • 我找到了解决方案,所有问题都来自clipSubview,有必要从superView的red View中取消选中clipSubview。 事实证明,红色视图只是切断了自己的超级视图。 I found the solution, all problems were from clipSubview, it was necessary to uncheck clipSubview from superView of red View. It turns out, that red view simply cut ...
  • 我不明白为什么New,Cancel和Modify消息应该是它们适用的产品的子类。 这不满足应该定义继承的“is-a”关系。 如果D类继承自B类,那么语句“Every D is a B ”应该是有意义的并且始终是真的。 “ Prod1是BaseProd ”(即“每个特定产品都是产品”) - 这是真实的,也是有道理的。 但就事件而言, Prod1Cancel 不是 Prod1 。 说“每个产品1取消事件都是产品1”是没有意义的。 相反, Prod1Cancel是与 Prod1 相关的事件,因此更有意义的是Pro ...
  • 如果为$stat_element分配层次结构中顶部关节的名称并运行以下代码,则会向该关节的所有子元素添加前缀"myPrefix_" 。 string $stat_element = "joint1"; select -r $stat_element; string $nodes[] = `ls -sl -dag`; for($node in $nodes){ rename -ignoreShape $node ("myPrefix_" + $node); } 希望这可以帮助 If you assi ...
  • 我认为这个问题不是很清楚。 WCMS中没有层次结构概念。 对我来说,WCMS是一个模块,模块由扩展组成。 所以我想问题是扩展关系/ 层次结构是什么? 它在WCMS模块文档中有所描述 此图像来自上述链接中引用的SAP文档。 I think the question is not very clear. There is no hierarchy concept in WCMS. For me WCMS is a module and the module is composed of extensions. ...
  • 您可以使用无序列表来创建层次结构(
    • 标记)。 这可以为您提供一个语义上有效的树结构,最重要的是,您可以通过CSS或Javascript以有趣的方式表达它。 查看列表教程,了解一系列精彩的工作示例。 You can use unordered lists to create a hierarchy (the
        and
      • tags). This can give you a tree structure which is semantically valid, and on t ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)