# HG changeset patch # User Claus Gittinger # Date 1317986049 -7200 # Node ID 8de2745d8a24c560b01ba6fb823751ed1cd1fee9 # Parent 5d5601245013de8c1f1812e1fe0ee8c9f74ef36e added: #asSignedIntegerArray diff -r 5d5601245013 -r 8de2745d8a24 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!