01: /**
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */package com.tc.util;
04:
05: /**
06: * An {@link EqualityComparator}that tells if objects are the same actual object.
07: */
08: public class SameObjectEqualityComparator implements EqualityComparator {
09:
10: public static final SameObjectEqualityComparator INSTANCE = new SameObjectEqualityComparator();
11:
12: private SameObjectEqualityComparator() {
13: // Use INSTANCE instead.
14: }
15:
16: public boolean isEquals(Object one, Object two) {
17: return one == two;
18: }
19:
20: }
|