コード例 #1
0
ファイル: Total.java プロジェクト: nuzil/101repo
 public Double visit(Department o) {
   double total = 0;
   total += o.getManager().accept(this);
   for (Subunit s : o.getSubunits()) total += s.accept(this);
   return total;
 }
コード例 #2
0
ファイル: Person.java プロジェクト: SEAL-UCLA/Ref-Finder-eval
 public Person getManager() {
   return _department.getManager();
 }