--- a/Collection.st Mon Nov 28 22:59:59 2005 +0100
+++ b/Collection.st Wed Nov 30 23:07:13 2005 +0100
@@ -2321,45 +2321,6 @@
^ nil
!
-isCollection
- "return true, if the receiver is some kind of collection;
- true is returned here - the method is redefined from Object."
-
- ^ true
-!
-
-isSorted
- "return true, if the receiver is sorted.
- Collections which hold their elements in sorted order
- should return true. Some algorithms (quicksort) degenerate when
- operating on sorted collections and can be avoided if this information
- is given. The default returned here (false) should not hurt.
- I.e. you should NEVER depend on that in your application."
-
- ^ false
-
- "Created: 13.4.1996 / 12:35:55 / cg"
-!
-
-isSortedBy:aBlock
- "return true, if my elements are sorted (already) by the given criterion (sortBlock).
- Collections which hold their elements in sorted order
- should return true. Some algorithms (quicksort) degenerate when
- operating on sorted collections and can be avoided if this information
- is given. The default returned here (false) should not hurt.
- I.e. you should NEVER depend on that in your application."
-
- ^ false
-
-!
-
-isSortedCollection
- "return true, if the receiver is a sortedCollection."
-
- ^ false
-
-!
-
longestCommonPrefix
"return the longest common prefix of my elements.
Typically used with string collections."
@@ -2731,6 +2692,13 @@
^ false
!
+isCollection
+ "return true, if the receiver is some kind of collection;
+ true is returned here - the method is redefined from Object."
+
+ ^ true
+!
+
isEmpty
"return true, if the receiver is empty"
@@ -2758,6 +2726,45 @@
"Modified: / 13.11.2001 / 13:27:55 / cg"
!
+isNonByteCollection
+ "return true, if the receiver is some kind of collection, but not a String, ByteArray etc.;
+ true is returned here - the method is redefined from Object."
+
+ ^ true
+!
+
+isSorted
+ "return true, if the receiver is sorted.
+ Collections which hold their elements in sorted order
+ should return true. Some algorithms (quicksort) degenerate when
+ operating on sorted collections and can be avoided if this information
+ is given. The default returned here (false) should not hurt.
+ I.e. you should NEVER depend on that in your application."
+
+ ^ false
+
+ "Created: 13.4.1996 / 12:35:55 / cg"
+!
+
+isSortedBy:aBlock
+ "return true, if my elements are sorted (already) by the given criterion (sortBlock).
+ Collections which hold their elements in sorted order
+ should return true. Some algorithms (quicksort) degenerate when
+ operating on sorted collections and can be avoided if this information
+ is given. The default returned here (false) should not hurt.
+ I.e. you should NEVER depend on that in your application."
+
+ ^ false
+
+!
+
+isSortedCollection
+ "return true, if the receiver is a sortedCollection."
+
+ ^ false
+
+!
+
notEmpty
"return true, if the receiver is not empty"
@@ -2826,7 +2833,7 @@
!Collection class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.177 2005-06-27 10:23:56 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.178 2005-11-30 22:06:37 stefan Exp $'
! !
Collection initialize!