source: trunk/ab5.0/ablib/src/Classes/System/Collections/Generic/misc.ab@ 577

Last change on this file since 577 was 577, checked in by NoWest, 16 years ago
File size: 1.3 KB
Line 
1
2Namespace System
3Namespace Collections
4Namespace Generic
5
6Interface IEnumerable<T>
7 ' Method
8 Function GetEnumerator () As IEnumerator<T>
9End Interface
10
11Interface IEnumerator<T>
12 ' Methods
13 Function MoveNext () As Boolean
14 Sub Reset()
15 ' Property
16 Function Current () As T
17End Interface
18
19
20Class ICollection<T>
21 Implements IEnumerable<T>, IEnumerator<T>
22Public
23 ' Property
24 Abstract Function Count() As Long
25 Abstract Function IsReadOnly() As Boolean
26
27 ' Methods
28 Abstract Sub Add ( item As T )
29 Abstract Sub Clear ()
30' Abstract Function Contains ( item As T ) As Boolean
31' Abstract Sub CopyTo (ByRef array As List<T>, arrayIndex As Long )
32 Abstract Function Remove ( item As T ) As Boolean
33End Class
34
35
36Class IList<T>
37 Inherits ICollection<T>
38Public
39 ' Property
40 Abstract Sub Operator[] ( index As Long, item As T )
41 Abstract Function Operator[] ( index As Long ) As T
42
43 ' Methods
44 Abstract Function IndexOf ( item As T ) As Long
45 Abstract Sub Insert ( index As Long, item As T )
46 Abstract Sub RemoveAt( index As Long )
47End Class
48
49Namespace Details
50
51Interface ICollection<T>
52 ' Property
53 Function Count() As Long
54 '/*Const*/ Function IsSynchronized() As Boolean
55 ' Function SyncRoot() As ...
56End Interface
57
58End Namespace
59
60
61End Namespace
62End Namespace
63End Namespace
Note: See TracBrowser for help on using the repository browser.