# HG changeset patch # User Claus Gittinger # Date 1327309300 -3600 # Node ID b5df2d4c7581a704d50ec6813cab9a4281b87cb6 # Parent 03b79717bd2bd3d84db90c807757a51dbbb948b0 added: #hashValueOf: comment/format in: #hashValue diff -r 03b79717bd2b -r b5df2d4c7581 HashStream.st --- a/HashStream.st Sun Jan 22 11:08:54 2012 +0100 +++ b/HashStream.st Mon Jan 23 10:01:40 2012 +0100 @@ -297,9 +297,22 @@ ! hashValue - "retunr the value of the computeted hash" + "return the value of the computed hash" ^ self subclassResponsibility + + "Modified (comment): / 23-01-2012 / 10:01:20 / cg" +! + +hashValueOf:aString + "for convenience: + return the value of the computed hash of aString" + + self reset. + self nextPutAll:aString. + ^ self hashValue + + "Created: / 18-01-2012 / 17:26:25 / cg" ! isReadable @@ -388,9 +401,9 @@ !HashStream class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libbasic/HashStream.st,v 1.24 2012-01-12 11:25:28 cg Exp $' + ^ '$Header: /cvs/stx/stx/libbasic/HashStream.st,v 1.25 2012-01-23 09:01:40 cg Exp $' ! version_CVS - ^ '$Header: /cvs/stx/stx/libbasic/HashStream.st,v 1.24 2012-01-12 11:25:28 cg Exp $' + ^ '$Header: /cvs/stx/stx/libbasic/HashStream.st,v 1.25 2012-01-23 09:01:40 cg Exp $' ! !