代码拉取完成,页面将自动刷新
一个可以自动增长常量的工具,拒绝每次增加一个常量就需要人工赋递增的初值
软件架构说明
<dependency>
<groupId>org.example</groupId>
<artifactId>auto-constant</artifactId>
<version>${auto-constant.version}</version>
</dependency>
#### 使用说明
> 替代这个(写完了才想起来其实可以这么写哈哈哈哈)
```java
public class AutoConstant {
public static final int STEP = 1;
public static final int c1 = 0;
public static final int c2 = c1 + STEP;
public static final int c3 = c2 + STEP;
public static final int c4 = c3 + STEP;
}
<dependency>
<groupId>org.example</groupId>
<artifactId>auto-constant-annotation</artifactId>
<version>${auto-constant.version}</version>
</dependency>
@AutoConstant(step = 1, strategy = Strategy.INCREMENTAL)
public class AopOrderConstant {
public static final int A1 = 0;
public static final int A2 = 0;
public static final int A3 = 0;
}
public class AopOrderConstant {
public static final int A1 = 0;
public static final int A2 = 1;
public static final int A3 = 2;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。