X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.structural2%2Fsrc%2Forg%2Fsimantics%2Fstructural2%2FmodelingRules%2FCPIgnore.java;fp=bundles%2Forg.simantics.structural2%2Fsrc%2Forg%2Fsimantics%2Fstructural2%2FmodelingRules%2FCPIgnore.java;h=34d7579ae55afafd9960bfb89038a9d9d67ebfa3;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=8911ac2ab94b099d664d177764c42746f6970bd5;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/modelingRules/CPIgnore.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/modelingRules/CPIgnore.java index 8911ac2ab..34d7579ae 100644 --- a/bundles/org.simantics.structural2/src/org/simantics/structural2/modelingRules/CPIgnore.java +++ b/bundles/org.simantics.structural2/src/org/simantics/structural2/modelingRules/CPIgnore.java @@ -1,52 +1,52 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.structural2.modelingRules; - -import org.simantics.db.ReadGraph; -import org.simantics.utils.ObjectUtils; - -/** - * @author Tuukka Lehtonen - */ -public class CPIgnore implements IConnectionPoint { - - public static final CPIgnore NULL_INSTANCE = new CPIgnore(null); - - public final Object data; - - public CPIgnore(Object data) { - this.data = data; - } - - @Override - public String toString(ReadGraph g) { - return "CPIgnore(" + data + ")"; - } - - @Override - public int hashCode() { - return ObjectUtils.hashCode(data); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - CPIgnore other = (CPIgnore) obj; - return ObjectUtils.objectEquals(data, other.data); - } - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.structural2.modelingRules; + +import org.simantics.db.ReadGraph; +import org.simantics.utils.ObjectUtils; + +/** + * @author Tuukka Lehtonen + */ +public class CPIgnore implements IConnectionPoint { + + public static final CPIgnore NULL_INSTANCE = new CPIgnore(null); + + public final Object data; + + public CPIgnore(Object data) { + this.data = data; + } + + @Override + public String toString(ReadGraph g) { + return "CPIgnore(" + data + ")"; + } + + @Override + public int hashCode() { + return ObjectUtils.hashCode(data); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + CPIgnore other = (CPIgnore) obj; + return ObjectUtils.objectEquals(data, other.data); + } + +}