Changeset 557
- Timestamp:
- Jul 20, 2008, 6:12:49 AM (16 years ago)
- Location:
- trunk/ab5.0/ablib/src/Classes
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Collections/Generic/List.ab
r543 r557 3 3 Namespace Collections 4 4 Namespace Generic 5 6 Interface IEnumerable<T>7 ' Method8 Function GetEnumerator() As IEnumerator<T>9 End Interface10 11 Interface IEnumerator<T>12 ' Methods13 Function MoveNext() As Boolean14 Sub Reset()15 ' Property16 Function Current() As T17 End Interface18 19 20 Class ICollection<T>21 Implements IEnumerable<T>, IEnumerator<T>22 Public23 ' Property24 Abstract Function Count() As Long25 Abstract Function IsReadOnly() As Boolean26 27 ' Methods28 Abstract Sub Add( item As T )29 Abstract Sub Clear()30 ' Abstract Function Contains ( item As T ) As Boolean31 ' Abstract Sub CopyTo (ByRef array As List<T>, arrayIndex As Long )32 Abstract Function Remove( item As T ) As Boolean33 End Class34 35 36 Class IList<T>37 Inherits ICollection<T>38 Public39 ' Property40 Abstract Sub Operator[] ( index As Long, item As T )41 Abstract Function Operator[] ( index As Long ) As T42 ' Methods43 ' Abstract Function Item ( index As Long ) As T44 Abstract Function IndexOf( item As T ) As Long45 Abstract Sub Insert( index As Long, item As T )46 Abstract Sub RemoveAt( index As Long )47 End Class48 49 5 50 6 Class List<T> -
trunk/ab5.0/ablib/src/Classes/index.ab
r553 r557 27 27 #require "./System/Collections/ArrayList.ab" 28 28 #require "./System/Collections/misc.ab" 29 #require "./System/Collections/Generic/misc.ab" 29 30 #require "./System/Collections/Generic/Dictionary.ab" 30 31 #require "./System/Collections/Generic/List.ab" 32 #require "./System/Collections/Generic/Stack.ab" 31 33 #require "./System/Collections/Generic/KeyNotFoundException.ab" 32 34 /*
Note:
See TracChangeset
for help on using the changeset viewer.