mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-26 06:00:00 +00:00
21 lines
304 B
Plaintext
21 lines
304 B
Plaintext
public class AccessorsExample {
|
|
private int age = 10;
|
|
|
|
public int age() {
|
|
return this.age;
|
|
}
|
|
|
|
public AccessorsExample age(final int age) {
|
|
this.age = age;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
class PrefixExample {
|
|
private String fName = "Hello, World!";
|
|
|
|
public String getName() {
|
|
return this.fName;
|
|
}
|
|
}
|