1 package com.atlassian.cache.impl;
2
3 import java.io.Serializable;
4
5 /**
6 * Class used for type safe handling of lazy references in our cache implementation.
7 *
8 * @since 2.0
9 */
10 public class ReferenceKey implements Serializable
11 {
12 private static final long serialVersionUID = 3814781337421919991L;
13
14 public static final ReferenceKey KEY = new ReferenceKey();
15
16 // Constructor is private to prevent instantiation
17 private ReferenceKey() {}
18
19 @Override
20 public boolean equals(final Object o)
21 {
22 return o instanceof ReferenceKey;
23 }
24
25 @Override
26 public int hashCode()
27 {
28 return 0;
29 }
30 }