作者:荆州房产网 | 来源:互联网 | 2023-05-19 18:14
This question already has an answer here:
这个问题在这里已有答案:
- Pipe (|) operator in Java 7 answers
Java 7中的管道(|)操作符答案
I saw recently in a code example the following:
我最近在一个代码示例中看到了以下内容:
f.setExtendedState( f.getExtendedState()|JFrame.MAXIMIZED_BOTH );
where f is a JFrame. How is this pipe operator called, what does it do and where can I find documentation about it?
其中f是JFrame。这个管道操作员如何调用,它做了什么以及在哪里可以找到有关它的文档?
Thank you Héctor
谢谢Héctor
4 个解决方案