]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/function/edit/FieldEditList.java
Version 7, February 2009
[GpsPrune.git] / tim / prune / function / edit / FieldEditList.java
1 package tim.prune.function.edit;
2
3 import java.util.ArrayList;
4
5 /**
6  * Class to hold a list of field edits
7  */
8 public class FieldEditList
9 {
10         private ArrayList<FieldEdit> _editList = new ArrayList<FieldEdit>();
11
12
13         /**
14          * Add an edit to the list
15          * @param inEdit FieldEdit
16          */
17         public void addEdit(FieldEdit inEdit)
18         {
19                 if (inEdit != null)
20                         _editList.add(inEdit);
21         }
22
23         /**
24          * @return number of edits in list
25          */
26         public int getNumEdits()
27         {
28                 return _editList.size();
29         }
30
31         /**
32          * Get the edit at the specified index
33          * @param inIndex index to get, starting at 0
34          * @return FieldEdit
35          */
36         public FieldEdit getEdit(int inIndex)
37         {
38                 return _editList.get(inIndex);
39         }
40 }