mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-23 22:19:13 +00:00
making IdentityWrapper serializable
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user