Class SimpleHashParameters

  • All Implemented Interfaces:
    HashParameters

    public class SimpleHashParameters
    extends java.lang.Object
    implements HashParameters
    Hash parameters consisting only of an algorithm name. Includes instances describing some commonly used algorithms.
    • Constructor Detail

      • SimpleHashParameters

        public SimpleHashParameters​(java.lang.String algorithm)
        Constructs a SimpleHashParameters with the given algorithm name.
        Parameters:
        algorithm - the name of the hash algorithm
    • Method Detail

      • algorithm

        public java.lang.String algorithm()
        Description copied from interface: HashParameters
        Returns the canonical name of the hash algorithm.
        Specified by:
        algorithm in interface HashParameters
        Returns:
        the name of the hash algorithm
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

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