OrdColl.st
changeset 387 cdf48d5d7399
parent 384 cc3d110ea879
child 407 4656034aa781
equal deleted inserted replaced
386:9150fc58b228 387:cdf48d5d7399
    19 
    19 
    20 OrderedCollection comment:'
    20 OrderedCollection comment:'
    21 COPYRIGHT (c) 1989 by Claus Gittinger
    21 COPYRIGHT (c) 1989 by Claus Gittinger
    22 	      All Rights Reserved
    22 	      All Rights Reserved
    23 
    23 
    24 $Header: /cvs/stx/stx/libbasic/Attic/OrdColl.st,v 1.31 1995-08-11 03:02:37 claus Exp $
    24 $Header: /cvs/stx/stx/libbasic/Attic/OrdColl.st,v 1.32 1995-08-12 22:54:52 claus Exp $
    25 '!
    25 '!
    26 
    26 
    27 !OrderedCollection class methodsFor:'documentation'!
    27 !OrderedCollection class methodsFor:'documentation'!
    28 
    28 
    29 copyright
    29 copyright
    40 "
    40 "
    41 !
    41 !
    42 
    42 
    43 version
    43 version
    44 "
    44 "
    45 $Header: /cvs/stx/stx/libbasic/Attic/OrdColl.st,v 1.31 1995-08-11 03:02:37 claus Exp $
    45 $Header: /cvs/stx/stx/libbasic/Attic/OrdColl.st,v 1.32 1995-08-12 22:54:52 claus Exp $
    46 "
    46 "
    47 !
    47 !
    48 
    48 
    49 documentation
    49 documentation
    50 "
    50 "
    87 
    87 
    88 size
    88 size
    89     "return the number of elements in the collection"
    89     "return the number of elements in the collection"
    90 
    90 
    91     ^ lastIndex - firstIndex + 1
    91     ^ lastIndex - firstIndex + 1
       
    92 !
       
    93 
       
    94 isEmpty
       
    95     "return true, if the receiver has no elements"
       
    96 
       
    97     ^ lastIndex < firstIndex
       
    98 !
       
    99 
       
   100 notEmpty
       
   101     "return true, if the receiver has any elements"
       
   102 
       
   103     ^ lastIndex >= firstIndex
    92 !
   104 !
    93 
   105 
    94 capacity
   106 capacity
    95     "return the number of elements, that the receiver is
   107     "return the number of elements, that the receiver is
    96      prepared to take.
   108      prepared to take.