当前位置:网站首页>@Accessors annotation function specifies that the prefix follows the hump naming
@Accessors annotation function specifies that the prefix follows the hump naming
2022-07-03 03:12:00 【Friendship years】
Accessors Translation is accessor . With this annotation you can control getter and setter The form of the method .
@Accessors(fluent = true)
Use fluent attribute ,getter and setter Method names are property names , And setter Method returns the current object
@Data
@Accessors(fluent = true)
class User {
private Integer id;
private String name;
// Generated getter and setter The method is as follows , Method brief
public Integer id(){}
public User id(Integer id){}
public String name(){}
public User name(String name){}
}
@Accessors(chain = true)
Use chain attribute ,setter Method returns the current object
@Data
@Accessors(chain = true)
class User {
private Integer id;
private String name;
// Generated setter The method is as follows , Method brief
public User setId(Integer id){}
public User setName(String name){}
}
@Accessors(prefix = “f”)
Use prefix attribute ,getter and setter Method ignores the specified prefix of the property name ( Follow the hump name )
@Data
@Accessors(prefix = "f")
class User {
private Integer fId;
private String fName;
// Generated getter and setter The method is as follows , Method brief
public Integer id(){}
public void id(Integer id){}
public String name(){}
public void name(String name){}
}
边栏推荐
- The difference between componentscan and componentscans
- Kubernetes family container housekeeper pod online Q & A?
- Docker install redis
- Getting started | jetpack hilt dependency injection framework
- Idea set method call ignore case
- I2C 子系统(一):I2C spec
- I2C subsystem (I): I2C spec
- PAT乙级常用函数用法总结
- Thunderbolt Chrome extension caused the data returned by the server JS parsing page data exception
- 文件重命名
猜你喜欢

内存泄漏工具VLD安装及使用
![[principles of multithreading and high concurrency: 1_cpu multi-level cache model]](/img/c7/6b5ab4ff7379bfccff7cdbb358ff8f.jpg)
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]

I2C 子系统(二):I3C spec

别再用 System.currentTimeMillis() 统计耗时了,太 Low,StopWatch 好用到爆!

Check log4j problems using stain analysis

The idea setting code is in UTF-8 idea Properties configuration file Chinese garbled

Sous - système I2C (IV): débogage I2C

On the adjacency matrix and adjacency table of graph storage

VS 2019 配置tensorRT生成engine

Three.js本地环境搭建
随机推荐
别再用 System.currentTimeMillis() 统计耗时了,太 Low,StopWatch 好用到爆!
MySQL Real combat 45 [SQL query and Update Execution Process]
Process the dataset and use labelencoder to convert all IDs to start from 0
docker安装redis
MySql实战45讲【全局锁和表锁】
[shutter] monitor the transparency gradient of the scrolling action control component (remove the blank of the top status bar | frame layout component | transparency component | monitor the scrolling
[algebraic structure] group (definition of group | basic properties of group | proof method of group | commutative group)
Yiwen takes you to know ZigBee
Chart. JS multitooltip tag - chart js multiTooltip labels
Cron表达式介绍
将时间戳转为指定格式的时间
What happens between entering the URL and displaying the page?
内存泄漏工具VLD安装及使用
Update and return document in mongodb - update and return document in mongodb
How do you adjust the scope of activerecord Association in rails 3- How do you scope ActiveRecord associations in Rails 3?
[combinatorics] Application of exponential generating function (multiple set arrangement problem | different balls in different boxes | derivation of exponential generating function of odd / even sequ
Introduction to cron expression
TCP handshake three times and wave four times. Why does TCP need handshake three times and wave four times? TCP connection establishes a failure processing mechanism
Creation and destruction of function stack frame
Docker install redis