Class Crc32ChecksumBuilder

java.lang.Object
de.calamanari.pk.builder.Crc32ChecksumBuilder
All Implemented Interfaces:
ChecksumBuilder

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

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

    Constructors
    Constructor Description
    Crc32ChecksumBuilder()  
  • 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