1 /*******************************************************************************
2 * Copyright (c) 2007, 2012 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.project.features.registry;
15 * @author Tuukka Lehtonen
17 public class InjectedDependency {
19 public final ProjectFeatureReference from;
20 public final ProjectFeatureReference to;
22 public InjectedDependency(ProjectFeatureReference from, ProjectFeatureReference to) {
24 throw new NullPointerException("null from reference");
26 throw new NullPointerException("null to reference");
32 public String toString() {
33 return from + " -> " + to;
37 public int hashCode() {
40 result = prime * result + from.hashCode();
41 result = prime * result + to.hashCode();
46 public boolean equals(Object obj) {
51 if (getClass() != obj.getClass())
53 InjectedDependency other = (InjectedDependency) obj;
54 return from.equals(other.from) && to.equals(other.to);