mutableinteger.java
来自「ANTLR(ANother Tool for Language Recognit」· Java 代码 · 共 16 行
JAVA
16 行
package org.antlr.misc;/** Java won't let you modify an Integer; not sure how that's more * efficient, but...here's one that let's you modify it. * Frightening I have to implement this myself. Blech. */public class MutableInteger { public int value; public MutableInteger() { this(0); } public MutableInteger(int value) { this.value = value; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?