如果我有如下课程
class Log {
int rev;
String auth;
String date;
List<PathInfo> pathinfolist;
public LogProcess(int rev, String auth, String date,
List<PathInfo> pathinfolist) {
super();
this.rev = rev;
this.auth = auth;
this.date = date;
this.pathinfolist = pathinfolist;
}
public int getRev() {
return rev;
}
public void setRev(int rev) {
this.rev = rev;
}
public String getAuth() {
return auth;
}
public void setAuth(String auth) {
this.auth = auth;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public List<PathInfo> getPathinfolist() {
return pathinfolist;
}
public void setPathinfolist(List<PathInfo> pathinfolist) {
this.pathinfolist = pathinfolist;
}
}
我有一个LinkedList<Log>
叫logobject
. 我已经添加了近 1000 个 Log 对象到使用logobject.add()
.
现在我如何访问/迭代链表中数据成员的这些值?