net.shibboleth.utilities.java.support.primitive
Class ObjectSupport

java.lang.Object
  extended by net.shibboleth.utilities.java.support.primitive.ObjectSupport

public final class ObjectSupport
extends Object

Helper methods for working with Objects.


Constructor Summary
private ObjectSupport()
          Constructor.
 
Method Summary
static int hashCode(Object o)
          Performs a safe (null-aware) Object.hashCode().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSupport

private ObjectSupport()
Constructor.

Method Detail

hashCode

public static int hashCode(@Nullable
                           Object o)
Performs a safe (null-aware) Object.hashCode().

Parameters:
o - object for which to get the hash code, may be null
Returns:
the hash code for the object of 0 if the given object is null


Copyright © 1999-2012. All Rights Reserved.