Class Crc32ChecksumBuilder

All Implemented Interfaces:

public class Crc32ChecksumBuilder
extends java.lang.Object
implements ChecksumBuilder
CRC32 Checksum Builder - concrete checksum BUILDER implementation using CRC32.
Karl Eilebrecht
  • Field Summary

    Modifier and Type Field Description
    static java.lang.String CHECKSUM_TYPE
    Checksum type key
  • Constructor Summary

    Constructor Description
  • Method Summary

    Modifier and Type Method Description
    void addBytes​(byte[] bytes)
    Builder-method to add a byte array
    void addDouble​(java.lang.Double value)
    Builder-method to add an double value
    void addInteger​(java.lang.Integer value)
    Builder-method to add an integer value
    void addLong​(java.lang.Long value)
    Builder-method to add a long value
    void addString​(java.lang.String text)
    Builder-method to add a string
    Checksum getChecksum()
    Concrete BUILDERs return checksum for the given text.
    This is the result of the BUILDERs life.
    void reset()
    re-initializes the builder, the instance shall afterwards behave like a new one.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait