Queue.st
changeset 4806 c4cde561294c
parent 4347 71185f66cd54
child 4976 0f047710f65c
--- a/Queue.st	Sun Feb 10 14:51:30 2019 +0100
+++ b/Queue.st	Sun Feb 10 14:54:48 2019 +0100
@@ -710,6 +710,19 @@
     ^ contentsArray size
 !
 
+isEmpty
+    "return true, if there are no elements in the queue"
+
+    ^ tally == 0
+!
+
+isFull
+    "return true, if the queue is full i.e. if writing is not
+     possible"
+
+    ^ tally == contentsArray size
+!
+
 size
     "return the number of elements in the queue"
 
@@ -724,23 +737,10 @@
 
 !Queue methodsFor:'testing'!
 
-isEmpty
-    "return true, if there are no elements in the queue"
-
-    ^ tally == 0
-!
-
 isFixedSize
     "return true if the receiver cannot grow"
 
     ^ false
-!
-
-isFull
-    "return true, if the queue is full i.e. if writing is not
-     possible"
-
-    ^ tally == contentsArray size
 ! !
 
 !Queue class methodsFor:'documentation'!