Class Checksum


  • public class Checksum
    extends java.lang.Object
    Checksum - the PRODUCT to be built in this BUILDER pattern demonstration.
    Author:
    Karl Eilebrecht
    • Constructor Summary

      Constructors 
      Constructor Description
      Checksum​(java.lang.String type, long value)
      Creates a new checksum instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getType()
      Returns technical name of checksum algorithm
      long getValue()
      returns the computed checkum value
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Checksum

        public Checksum​(java.lang.String type,
                        long value)
        Creates a new checksum instance.
        Parameters:
        type - technical name of method
        value - the result value of checksum algorithm
    • Method Detail

      • getType

        public java.lang.String getType()
        Returns technical name of checksum algorithm
        Returns:
        type of checksum
      • getValue

        public long getValue()
        returns the computed checkum value
        Returns:
        value
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object