Change the value of the ith field of this tuple. @param i index of the field to change. It must be a valid index. @param f new value for the field.
(int i, Field f)
| 77 | * new value for the field. |
| 78 | */ |
| 79 | public void setField(int i, Field f) { |
| 80 | // some code goes here |
| 81 | if(i>=this.fieldList.size()){ |
| 82 | this.fieldList.add(i,f); |
| 83 | }else{ |
| 84 | this.fieldList.set(i,f); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * @return the value of the ith field, or null if it has not been set. |
no outgoing calls