Changeset 557 for trunk


Ignore:
Timestamp:
Jul 20, 2008, 6:12:49 AM (16 years ago)
Author:
NoWest
Message:
 
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  
    33Namespace Collections
    44Namespace Generic
    5 
    6 Interface IEnumerable<T>
    7     ' Method
    8     Function GetEnumerator() As IEnumerator<T>
    9 End Interface
    10 
    11 Interface IEnumerator<T>
    12     ' Methods
    13     Function MoveNext() As Boolean
    14     Sub Reset()
    15     ' Property
    16     Function Current() As T
    17 End Interface
    18 
    19 
    20 Class ICollection<T>
    21     Implements IEnumerable<T>, IEnumerator<T>
    22 Public
    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
    33 End Class
    34 
    35 
    36 Class IList<T>
    37     Inherits ICollection<T>
    38 Public
    39     ' Property
    40     Abstract Sub Operator[] ( index As Long, item As T )
    41     Abstract Function Operator[] ( index As Long ) As T
    42     ' Methods
    43 '   Abstract Function Item ( index As Long ) As T
    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 )
    47 End Class
    48 
    495
    506Class List<T>
  • trunk/ab5.0/ablib/src/Classes/index.ab

    r553 r557  
    2727#require "./System/Collections/ArrayList.ab"
    2828#require "./System/Collections/misc.ab"
     29#require "./System/Collections/Generic/misc.ab"
    2930#require "./System/Collections/Generic/Dictionary.ab"
    3031#require "./System/Collections/Generic/List.ab"
     32#require "./System/Collections/Generic/Stack.ab"
    3133#require "./System/Collections/Generic/KeyNotFoundException.ab"
    3234/*
Note: See TracChangeset for help on using the changeset viewer.