--- a/LinkedList.st Tue Aug 22 15:47:22 2000 +0200
+++ b/LinkedList.st Tue Aug 22 15:49:36 2000 +0200
@@ -308,18 +308,6 @@
!LinkedList methodsFor:'queries'!
-isEmpty
- "return true, if the collection is empty"
-
- ^ firstLink isNil
-!
-
-notEmpty
- "return true, if the collection is not empty"
-
- ^ firstLink notNil
-!
-
size
"return the size of the LinkedList i.e. the number of nodes"
@@ -407,10 +395,22 @@
l add:(v := ValueLink new value:'hello').
l indexOf:v
"
+!
+
+isEmpty
+ "return true, if the collection is empty"
+
+ ^ firstLink isNil
+!
+
+notEmpty
+ "return true, if the collection is not empty"
+
+ ^ firstLink notNil
! !
!LinkedList class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/LinkedList.st,v 1.33 2000-08-15 14:29:54 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/LinkedList.st,v 1.34 2000-08-22 13:48:28 cg Exp $'
! !