Class Hash
java.lang.Object
org.wikidata.wdtk.datamodel.helpers.Hash
Static class for computing a hashcode of arbitrary data objects using only
their interfaces. This can be used to implement the hashCode() method of
arbitrary interface implementations. More efficient solutions might exist if
the object that implements an interface is of a specific known type, but the
methods here could always be used as a fallback or default.
- Author:
- Markus Kroetzsch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Calculates hash code for givenAliasUpdate
object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.static int
Calculates hash code for givenFormUpdate
object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.static int
Calculates hash code for givenItemUpdate
object.static int
Returns a hash code for the given object.static int
Calculates hash code for givenLexemeUpdate
object.static int
Returns a hash code for the given object.static int
Calculates hash code for givenMediaInfoUpdate
object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.static int
Calculates hash code for givenPropertyUpdate
object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.static int
Calculates hash code for givenSenseUpdate
object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.static int
Calculates hash code for givenStatementUpdate
object.static int
Returns a hash code for the given object.static int
Calculates hash code for givenTermUpdate
object.static int
Returns a hash code for the given object.static int
Returns a hash code for the given object.
-
Constructor Details
-
Hash
public Hash()
-
-
Method Details
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Returns a hash code for the given object.- Parameters:
o
- the object to create a hash for- Returns:
- the hash code of the object
- See Also:
-
hashCode
Calculates hash code for givenTermUpdate
object.- Parameters:
o
- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenAliasUpdate
object.- Parameters:
o
- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenStatementUpdate
object.- Parameters:
o
- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenMediaInfoUpdate
object.- Parameters:
o
- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenItemUpdate
object.- Parameters:
o
- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenPropertyUpdate
object.- Parameters:
o
- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenSenseUpdate
object.- Parameters:
o
- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenFormUpdate
object.- Parameters:
o
- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenLexemeUpdate
object.- Parameters:
o
- the object to create a hash for- Returns:
- object's hash code
- See Also:
-