Collection.st
changeset 18467 f4e69df12a1b
parent 18322 3a7f61a86409
child 18469 48289b7e72e0
--- a/Collection.st	Mon Jun 08 21:22:24 2015 +0200
+++ b/Collection.st	Mon Jun 08 21:22:27 2015 +0200
@@ -277,7 +277,6 @@
     ^ self newWithSize:n
 ! !
 
-
 !Collection class methodsFor:'Signal constants'!
 
 emptyCollectionSignal
@@ -528,7 +527,6 @@
     "Created: / 22-10-2008 / 21:29:27 / cg"
 ! !
 
-
 !Collection methodsFor:'accessing'!
 
 anElement
@@ -5612,6 +5610,15 @@
     ^ true
 !
 
+isOrdered
+    "return true, if the receiver's elements are ordered.
+     This defaults to true here, and is to be redefined by collections which use
+     hashing, and the order of keys and values is therefore not guaranteed to remain
+     the same, as objects are added."
+
+    ^ true
+!
+
 isSorted
     "return true, if the receiver is sorted.
      Collections which hold their elements in sorted order
@@ -5748,11 +5755,11 @@
 !Collection class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.365 2015-05-07 14:26:49 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.366 2015-06-08 19:22:27 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.365 2015-05-07 14:26:49 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.366 2015-06-08 19:22:27 cg Exp $'
 ! !