1 package com.thoughtworks.acceptance.objects; 2 3 public class OpenSourceSoftware extends Software { 4 5 private String license; 6 7 public OpenSourceSoftware(String vendor, String name, String license) { 8 super(vendor, name); 9 this.license = license; 10 } 11 12 public boolean equals(Object obj) { 13 return super.equals(obj) && 14 (obj instanceof OpenSourceSoftware) && 15 ((OpenSourceSoftware) obj).license.equals(this.license); 16 } 17 }

This page was automatically generated by Maven