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

Last change on this file since 582 was 582, checked in by イグトランス (egtra), 16 years ago

非Genericコレクションインタフェースの扱いを大幅に縮小。Queue/Stackの実装インタフェースの修正。

File size: 1.4 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 Inherits IDisposable
13 ' Methods
14 Function MoveNext () As Boolean
15 Sub Reset()
16 ' Property
17 Function Current () As T
18End Interface
19
20
21Class ICollection<T>
22 Implements IEnumerable<T>
23Public
24 ' Property
25 Abstract Function Count() As Long
26 Abstract Function IsReadOnly() As Boolean
27
28 ' Methods
29 Abstract Sub Add ( item As T )
30 Abstract Sub Clear ()
31' Abstract Function Contains ( item As T ) As Boolean
32' Abstract Sub CopyTo (ByRef array As List<T>, arrayIndex As Long )
33 Abstract Function Remove ( item As T ) As Boolean
34End Class
35
36
37Class IList<T>
38 Inherits ICollection<T>
39Public
40 ' Property
41 Abstract Sub Operator[] ( index As Long, item As T )
42 Abstract Function Operator[] ( index As Long ) As T
43
44 Abstract Sub Item ( index As Long, item As T )
45 Abstract Function Item ( index As Long ) As T
46
47 Abstract Function IndexOf ( item As T ) As Long
48 Abstract Sub Insert ( index As Long, item As T )
49 Abstract Sub RemoveAt( index As Long )
50End Class
51
52Namespace Details
53
54Interface ICollection<T>
55 ' Property
56 Function Count() As Long
57 '/*Const*/ Function IsSynchronized() As Boolean
58 ' Function SyncRoot() As ...
59End Interface
60
61End Namespace
62
63
64End Namespace
65End Namespace
66End Namespace
Note: See TracBrowser for help on using the repository browser.