public UpdateReturnState update ( final String datum ) { if ( ( datum == null ) || datum . isEmpty ( ) ) { return RejectedNullOrEmpty ; } final byte [ ] data = datum . getBytes ( UTF_8 ) ; return hashUpdate ( hash ( data , getSeed ( ) ) [ 0 ] >>> 1 ) ; }
Present this sketch with the given String . The string is converted to a byte array using UTF8 encoding . If the string is null or empty no update attempt is made and the method returns .