Package com.apicatalog.rdf.canon
Class NDegreeResult
- java.lang.Object
-
- com.apicatalog.rdf.canon.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.StringhashThe hash generated by the Hash N-Degree Quads algorithm.private IdentifierIssuerissuerThe identifier issuer used in generating this result.
-
Constructor Summary
Constructors Constructor Description NDegreeResult(java.lang.String hash, IdentifierIssuer issuer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(NDegreeResult o)booleanequals(java.lang.Object o)java.lang.StringgetHash()Get the hash generated by the Hash N-Degree Quads algorithm.IdentifierIssuergetIssuer()Get the issuer used by the algorithm to produce the hash.inthashCode()
-
-
-
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:
compareToin interfacejava.lang.Comparable<NDegreeResult>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.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:
hashCodein classjava.lang.Object
-
-