--- a/OrdColl.st Fri Aug 11 18:03:05 1995 +0200
+++ b/OrdColl.st Sun Aug 13 00:54:52 1995 +0200
@@ -21,7 +21,7 @@
COPYRIGHT (c) 1989 by Claus Gittinger
All Rights Reserved
-$Header: /cvs/stx/stx/libbasic/Attic/OrdColl.st,v 1.31 1995-08-11 03:02:37 claus Exp $
+$Header: /cvs/stx/stx/libbasic/Attic/OrdColl.st,v 1.32 1995-08-12 22:54:52 claus Exp $
'!
!OrderedCollection class methodsFor:'documentation'!
@@ -42,7 +42,7 @@
version
"
-$Header: /cvs/stx/stx/libbasic/Attic/OrdColl.st,v 1.31 1995-08-11 03:02:37 claus Exp $
+$Header: /cvs/stx/stx/libbasic/Attic/OrdColl.st,v 1.32 1995-08-12 22:54:52 claus Exp $
"
!
@@ -91,6 +91,18 @@
^ lastIndex - firstIndex + 1
!
+isEmpty
+ "return true, if the receiver has no elements"
+
+ ^ lastIndex < firstIndex
+!
+
+notEmpty
+ "return true, if the receiver has any elements"
+
+ ^ lastIndex >= firstIndex
+!
+
capacity
"return the number of elements, that the receiver is
prepared to take.