Changeset 386 for trunk/Include/Classes/System/Collections/ArrayList.ab
- Timestamp:
- Nov 23, 2007, 11:39:44 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Collections/ArrayList.ab
r381 r386 7 7 8 8 Class ArrayList 9 Implements IList /*, ICollection, IEnumerable, ICloneable*/9 'Implements IList /*, ICollection, IEnumerable, ICloneable*/ 10 10 11 11 pObject As *Object … … 76 76 End Function 77 77 78 /*Const*/ OverrideFunction IsFixedSize() As Boolean78 /*Const*/ Function IsFixedSize() As Boolean 79 79 Return False 80 80 End Function 81 81 82 /*Const*/ OverrideFunction IsReadOnly() As Boolean82 /*Const*/ Function IsReadOnly() As Boolean 83 83 Return False 84 84 End Function … … 219 219 End Function 220 220 221 /*Const*/ OverrideFunction IndexOf(object As Object) As Long221 /*Const*/ Function IndexOf(object As Object) As Long 222 222 Return IndexOf(object, 0, size) 223 223 End Function … … 238 238 End Function 239 239 240 OverrideSub Insert(i As Long, object As Object)240 Sub Insert(i As Long, object As Object) 241 241 SetLeastCapacity(size + 1) 242 242 memmove(VarPtr(pObject[i + 1]), VarPtr(pObject[i]), SizeOf (*Object) * (size - i)) … … 261 261 End Function 262 262 263 OverrideSub Remove(object As Object)263 Sub Remove(object As Object) 264 264 Dim i = IndexOf(object) 265 265 If i > 0 Then … … 268 268 End Sub 269 269 270 OverrideSub RemoveAt(i As Long)270 Sub RemoveAt(i As Long) 271 271 RemoveRange(i, 1) 272 272 End Sub … … 307 307 End Sub 308 308 309 /*Override*/Override Function ToString() As String309 Override Function ToString() As String 310 310 Return "System.Collections.ArrayList" 311 311 End Function
Note:
See TracChangeset
for help on using the changeset viewer.