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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intCalculates hash code for givenAliasUpdateobject.static intReturns a hash code for the given object.static intReturns a hash code for the given object.static intReturns a hash code for the given object.static intReturns a hash code for the given object.static intReturns a hash code for the given object.static intCalculates hash code for givenFormUpdateobject.static intReturns a hash code for the given object.static intReturns a hash code for the given object.static intCalculates hash code for givenItemUpdateobject.static intReturns a hash code for the given object.static intCalculates hash code for givenLexemeUpdateobject.static intReturns a hash code for the given object.static intCalculates hash code for givenMediaInfoUpdateobject.static intReturns a hash code for the given object.static intReturns a hash code for the given object.static intReturns a hash code for the given object.static intCalculates hash code for givenPropertyUpdateobject.static intReturns a hash code for the given object.static intReturns a hash code for the given object.static intReturns a hash code for the given object.static intCalculates hash code for givenSenseUpdateobject.static intReturns a hash code for the given object.static intReturns a hash code for the given object.static intReturns a hash code for the given object.static intReturns a hash code for the given object.static intReturns a hash code for the given object.static intCalculates hash code for givenStatementUpdateobject.static intReturns a hash code for the given object.static intCalculates hash code for givenTermUpdateobject.static intReturns a hash code for the given object.static intReturns 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 givenTermUpdateobject.- Parameters:
o- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenAliasUpdateobject.- Parameters:
o- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenStatementUpdateobject.- Parameters:
o- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenMediaInfoUpdateobject.- Parameters:
o- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenItemUpdateobject.- Parameters:
o- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenPropertyUpdateobject.- Parameters:
o- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenSenseUpdateobject.- Parameters:
o- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenFormUpdateobject.- Parameters:
o- the object to create a hash for- Returns:
- object's hash code
- See Also:
-
hashCode
Calculates hash code for givenLexemeUpdateobject.- Parameters:
o- the object to create a hash for- Returns:
- object's hash code
- See Also:
-