added: #asSignedIntegerArray
authorClaus Gittinger <cg@exept.de>
Fri, 07 Oct 2011 13:14:09 +0200
changeset 13773 8de2745d8a24
parent 13772 5d5601245013
child 13774 f36d336cc5c0
added: #asSignedIntegerArray
Collection.st
--- a/Collection.st	Fri Oct 07 11:51:29 2011 +0200
+++ b/Collection.st	Fri Oct 07 13:14:09 2011 +0200
@@ -1539,6 +1539,15 @@
     ^ SharedCollection for:self.
 !
 
+asSignedIntegerArray
+    "return a new SignedIntegerArray with the collection's elements
+     (which must convert to 32bit signed integers in the range -16r80000000..16r7FFFFFFF)."
+
+    ^ self asIntegerArray:SignedIntegerArray
+
+    "Created: / 07-10-2011 / 13:14:01 / cg"
+!
+
 asSortedCollection
     "return a new SortedCollection with the receiver collections elements"
 
@@ -4115,11 +4124,11 @@
 !Collection class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.266 2011-09-29 08:38:47 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.267 2011-10-07 11:14:09 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.266 2011-09-29 08:38:47 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.267 2011-10-07 11:14:09 cg Exp $'
 ! !
 
 Collection initialize!