在java中,我们经常通过|组合标志操作
e.g。
select e.ssn, e.lname, e.fname
from employee e
where e.ssn not in
(select wo.essn from works_on wo
join dept_locations dl on dnumber = wo.pno
where dl.dlocation = 'Detroit'
or po.pnumber = 7)
我似乎无法在Kotlin中找到等效的运算符。有人知道在Kotlin中组合整数标志的便捷方法吗?
答案 0 :(得分:61)
只需使用or
:
CurationArticle
这可能有点令人困惑。您可以创建一个小帮助扩展函数getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE or
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION or
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
);
(或其他)以使其更具可读性:
with