01: /*
02: * Copyright (C) 2008 XStream Committers.
03: * All rights reserved.
04: *
05: * The software in this package is published under the terms of the BSD
06: * style license a copy of which has been included with this distribution in
07: * the LICENSE.txt file.
08: *
09: * Created on 01. January 2008 by Joerg Schaible
10: */
11: package com.thoughtworks.xstream.benchmark.cache.model;
12:
13: public class One {
14:
15: private String one;
16:
17: public One(String one) {
18: this .one = one;
19: }
20:
21: public boolean equals(Object obj) {
22: return one.equals(((One) obj).one);
23: }
24:
25: public int hashCode() {
26: return one.hashCode() >>> 1;
27: }
28: }
|