1 package com.atlassian.vcache;
2
3 import com.atlassian.annotations.PublicApi;
4
5 import javax.annotation.Nullable;
6 import java.io.Serializable;
7
8 /**
9 * Represents an identifier for use in compare-and-swap operations. The instance may be serialized if the instance
10 * needs to be stored across requests. Use {@link Object#equals(Object)} to compare two instances for equality.
11 *
12 * @since 1.0
13 */
14 @PublicApi
15 public interface CasIdentifier extends Serializable {
16 @Override
17 boolean equals(@Nullable Object other);
18 }