making IdentityWrapper serializable

This commit is contained in:
Axel Uhl
2015-12-03 21:21:56 +01:00
parent 6157309227
commit 2bece4b5d7
@@ -1,5 +1,7 @@
package com.sap.sse.util;
import java.io.Serializable;
/**
* Implements {@link Object#equals(Object)} and {@link Object#hashCode()} based on the wrapped object's
* identity, no matter what the object itself defines as {@code equals} and {@code hashCode}.
@@ -7,7 +9,8 @@ package com.sap.sse.util;
* @author Axel Uhl (D043530)
*
*/
public class IdentityWrapper<T> {
public class IdentityWrapper<T> implements Serializable {
private static final long serialVersionUID = 3514488568026067341L;
private final T t;
public IdentityWrapper(T t) {