X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2Ffunction%2Fedit%2FFieldEditList.java;fp=src%2Ftim%2Fprune%2Ffunction%2Fedit%2FFieldEditList.java;h=8612e8ae5f9eec2cbabe20243f565be9fa7d4924;hp=0000000000000000000000000000000000000000;hb=ce6f2161b8596f7018d6a76bff79bc9e571f35fd;hpb=2d8cb72e84d5cc1089ce77baf1e34ea3ea2f8465 diff --git a/src/tim/prune/function/edit/FieldEditList.java b/src/tim/prune/function/edit/FieldEditList.java new file mode 100644 index 0000000..8612e8a --- /dev/null +++ b/src/tim/prune/function/edit/FieldEditList.java @@ -0,0 +1,40 @@ +package tim.prune.function.edit; + +import java.util.ArrayList; + +/** + * Class to hold a list of field edits + */ +public class FieldEditList +{ + private ArrayList _editList = new ArrayList(); + + + /** + * Add an edit to the list + * @param inEdit FieldEdit + */ + public void addEdit(FieldEdit inEdit) + { + if (inEdit != null) + _editList.add(inEdit); + } + + /** + * @return number of edits in list + */ + public int getNumEdits() + { + return _editList.size(); + } + + /** + * Get the edit at the specified index + * @param inIndex index to get, starting at 0 + * @return FieldEdit + */ + public FieldEdit getEdit(int inIndex) + { + return _editList.get(inIndex); + } +}