新增 ImmutableObject 注解。

dev
ZhouXY108 2024-08-26 10:21:29 +08:00
parent 527b0f0980
commit c92f4fbd5c
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
package xyz.zhouxy.plusone.commons.annotation;
import java.lang.annotation.Target;
import com.google.common.annotations.Beta;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
*
* <pre>@ImmutableObject
* class Foo {
* private final @Getter int intVal;
* private final @Getter String stringVal;
* private final @Getter LocalDate dateVal;
* private final @Getter BigDecimal decimalVal;
* }
* </pre>
* <p>
* guava ImmutableListImmutableMap
* <p>
*
* @author <a href="http://zhouxy.xyz:3000/ZhouXY108">ZhouXY</a>
* @since 0.1.0
*/
@Beta
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ImmutableObject {
}