Class HashSumEventStream

    • Constructor Detail

    • Method Detail

      • calculateHashSum

        public BigInteger calculateHashSum()
        Calculates the hash sum of the stream and wraps it into a BigInteger. Note: The method must be called after the stream is completely consumed.
        Returns:
        The calculated hash sum as BigInteger.
        Throws:
        IllegalStateException - Thrown if the stream is not consumed completely, completely means that hasNext() returns false.