What is a class with only attributes called?
Is there a name or nickname for a class that only contain attributes (like a c struct)? Like DialogParameters in this example:
public class MyDialog extends JDialog {
public static class DialogParameters {
public Stri开发者_运维技巧ng dialogTitle;
public String helpId;
}
public MyDialog(DialogParameters parameters) {
...
}
}
Data transfer object, or value object.
POJO (http://en.wikipedia.org/wiki/Plain_Old_Java_Object)
精彩评论