data class BoxAppBean( var userID: Int, var pkg: String, var name: String, var icon: Drawable, )转java代码
时间: 2024-02-20 13:01:38 浏览: 73
以下是转换后的 Java 代码:
```
public class BoxAppBean {
private int userID;
private String pkg;
private String name;
private Drawable icon;
public BoxAppBean(int userID, String pkg, String name, Drawable icon) {
this.userID = userID;
this.pkg = pkg;
this.name = name;
this.icon = icon;
}
public int getUserID() {
return userID;
}
public void setUserID(int userID) {
this.userID = userID;
}
public String getPkg() {
return pkg;
}
public void setPkg(String pkg) {
this.pkg = pkg;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Drawable getIcon() {
return icon;
}
public void setIcon(Drawable icon) {
this.icon = icon;
}
}
```
阅读全文