01: /*
02: * Copyright (C) 2003, 2004 Joe Walnes.
03: * Copyright (C) 2006, 2007 XStream Committers.
04: * All rights reserved.
05: *
06: * The software in this package is published under the terms of the BSD
07: * style license a copy of which has been included with this distribution in
08: * the LICENSE.txt file.
09: *
10: * Created on 26. September 2003 by Joe Walnes
11: */
12: package com.thoughtworks.acceptance.objects;
13:
14: public class Software extends StandardObject {
15:
16: public String vendor;
17: public String name;
18:
19: public Software() {
20: }
21:
22: public Software(String vendor, String name) {
23: this .vendor = vendor;
24: this .name = name;
25: }
26:
27: public boolean equals(Object obj) {
28: if (obj instanceof Software) {
29: final Software software = (Software) obj;
30: return software.vendor.equals(vendor)
31: && software.name.equals(name);
32: }
33: return false;
34: }
35: }
|