Class XXHash32Digest

  • All Implemented Interfaces:
    Digest

    public class XXHash32Digest
    extends java.lang.Object
    implements Digest
    An implementation of Digest that represents an XXHash32 digest
    • Constructor Summary

      Constructors 
      Constructor Description
      XXHash32Digest​(java.lang.String value, int seed)
      Constructs a new XXHashDigest with the provided XXHash value and the seed value represented as a hexadecimal string
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String seedHex()  
      o.a.c.sidecar.client.shaded.common.request.data.Digest toSidecarDigest()  
      java.lang.String toString()  
      java.lang.String value()  
      • Methods inherited from class java.lang.Object

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

      • XXHash32Digest

        public XXHash32Digest​(@NotNull
                              java.lang.String value,
                              int seed)
        Constructs a new XXHashDigest with the provided XXHash value and the seed value represented as a hexadecimal string
        Parameters:
        value - the xxhash value
        seed - the value of the seed used to calculate the digest
    • Method Detail

      • value

        public java.lang.String value()
        Specified by:
        value in interface Digest
        Returns:
        the string representation of the digest
      • seedHex

        @Nullable
        public java.lang.String seedHex()
        Returns:
        the optional seed in hexadecimal format
      • toSidecarDigest

        public o.a.c.sidecar.client.shaded.common.request.data.Digest toSidecarDigest()
        Specified by:
        toSidecarDigest in interface Digest
        Returns:
        the digest translated to Sidecar digest
      • toString

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