コード例 #1
0
 /**
  * Returns the item at a given index.
  *
  * @param i index of the item to retrieve
  */
 public Object getItem(int i) {
   return task.getRequirement(i);
 }
コード例 #2
0
 /** Indicates whether or not the list is empty. */
 public boolean isEmpty() {
   return task.getRequirementCount() == 0;
 }
コード例 #3
0
 /** Returns the number of items in the list. */
 public int getCount() {
   return task.getRequirementCount();
 }