A1.米拉娜是月女
原创2022/7/4米拉工具大约 1 分钟
A1.米拉娜是月女
![]()
POM(.xml), 月女,她有一只神箭,她有一只大猫。
Java8, 零依赖,是guava, commons-*的补充。
A1.1.如何使用
① 自己clone和install最豪横。
② 使用 maven central 比较稳妥。
<dependency>
<groupId>pro.fessional</groupId>
<artifactId>mirana</artifactId>
<version>${mirana.version}</version>
</dependency>③ 使用 SNAPSHOT 与时俱进。
<repository>
<id>oss-sonatype</id>
<name>oss-sonatype</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>A1.2.命名约定
- Null 等效于null的默认值。
- None 等效于empty的默认值。
- Sugar 表示静态线程安全的工具类,可做kotlin语法糖
- Help 表示和业务关联的或有生命周期的辅助类
- Util 表示静态线程安全的工具类
A1.3.版本序号
从 3.0.0开始,回归标准的三段法。
在此之前的版本号为开根号+三段法,如√2对应的1.4.0, 1.4.1, 1.4.14, 若版本不够且不想跳版本,则无限的写下去1.4.14213562373095
- √1 =
1.0.0 - √2 =
1.4.0,1.4.1,1.4.14 - √3 =
1.7.0,1.7.3,1.7.32 - √4 =
2.0.0 - √5 =
2.2.0,2.2.3,2.2.4 - √6 =
2.4.0,2.4.4,2.4.5 - √7 =
2.6.0,2.6.4,2.6.5
