List of usage examples for java.rmi MarshalledObject hashCode
public int hashCode()
MarshalledObject
. From source file:de.laures.cewolf.taglib.util.KeyGenerator.java
public static int generateKey(Serializable obj) { if (obj == null) { NoKeyException ex = new NoKeyException("assertion failed: can not generate key for null,"); throw ex; }//from w w w . j ava 2 s. co m try { MarshalledObject mo = new MarshalledObject(obj); return mo.hashCode(); } catch (IOException ioex) { log.error("IOException during key generation KeyGenerator.generateKey()", ioex); throw new NoKeyException(obj + " is not serializable."); } }