--- a/LinkedList.st Fri Aug 05 02:55:07 1994 +0200
+++ b/LinkedList.st Fri Aug 05 02:59:40 1994 +0200
@@ -20,6 +20,8 @@
LinkedList comment:'
COPYRIGHT (c) 1989 by Claus Gittinger
All Rights Reserved
+
+$Header: /cvs/stx/stx/libbasic/LinkedList.st,v 1.8 1994-08-05 00:58:53 claus Exp $
'!
!LinkedList class methodsFor:'documentation'!
@@ -40,7 +42,7 @@
version
"
-$Header: /cvs/stx/stx/libbasic/LinkedList.st,v 1.7 1994-06-02 16:20:47 claus Exp $
+$Header: /cvs/stx/stx/libbasic/LinkedList.st,v 1.8 1994-08-05 00:58:53 claus Exp $
"
!
@@ -102,12 +104,21 @@
"return last node in the list"
^ lastLink
-!
+! !
+
+!LinkedList methodsFor:'queries'!
+
size
"return the size of the LinkedList i.e. the number of nodes"
^ numberOfNodes
+!
+
+isEmpty
+ "return true, if the collection is empty"
+
+ ^ firstLink isNil
! !
!LinkedList methodsFor:'testing'!