Auto Generate Get & Set Methods?

I think that creating classes of holders, classes using only attritutes, getting methods and given methods can be auto-generated. I understand that Eclipse is the standard "standard" Java IDE these days. Does Eclipse occupy this? Other IDEs?

I assume that the only reasons to create dedicated data storage classes instead of using HashMaps are mixed data types in a more visible / safer form and on the occasion when you want to do something with the data when you insert or retrieve it. Thoughts?

+5
source share
6 answers

. Eclipse . setter/getter, , → Source → Generate getter/setting.

Netbean . → - > /.

, .

+20

Eclipse

→ → .

enter image description here

IDEA

→ → Getter and Setter

enter image description here

+5

IntelliJ IDEA , , Eclipse (flamesuite on!). , HashMaps, (int) - (Integer).

0
  • (IDEA, Eclipse, Netbeas, ), IDE, getter.

  • , POJO -. , , , pojo , , ..

0

IDE . Netbeans, , .

, , . (: ), get/set .

, . Java , , , . , , , , , .

0

Alt + Shift + S, R → → /.

0

All Articles