Class NDegreeResult

  • All Implemented Interfaces:
    java.lang.Comparable<NDegreeResult>

    final class NDegreeResult
    extends java.lang.Object
    implements java.lang.Comparable<NDegreeResult>
    The output of the Hash N-Degree Quad algorithm.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String hash
      The hash generated by the Hash N-Degree Quads algorithm.
      private IdentifierIssuer issuer
      The identifier issuer used in generating this result.
    • Field Detail

      • hash

        private final java.lang.String hash
        The hash generated by the Hash N-Degree Quads algorithm.
      • issuer

        private final IdentifierIssuer issuer
        The identifier issuer used in generating this result.
    • Constructor Detail

      • NDegreeResult

        NDegreeResult​(java.lang.String hash,
                      IdentifierIssuer issuer)
    • Method Detail

      • compareTo

        public int compareTo​(NDegreeResult o)
        Specified by:
        compareTo in interface java.lang.Comparable<NDegreeResult>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getHash

        public java.lang.String getHash()
        Get the hash generated by the Hash N-Degree Quads algorithm.
        Returns:
        the hash
      • getIssuer

        public IdentifierIssuer getIssuer()
        Get the issuer used by the algorithm to produce the hash.
        Returns:
        the issuer
      • hashCode

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