Package org.eclipse.rdf4j.common.lang
Class ObjectUtil
java.lang.Object
org.eclipse.rdf4j.common.lang.ObjectUtil
Generic utility methods related to objects.
- Author:
- Arjohn Kampman
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Returns the hash code of the supplied object, or 0 if a null reference is supplied.
-
Constructor Details
-
ObjectUtil
public ObjectUtil()
-
-
Method Details
-
nullHashCode
Returns the hash code of the supplied object, or 0 if a null reference is supplied.- Parameters:
o
- An object or null reference.- Returns:
- The object's hash code, or 0 if the parameter is null.
-