-package org.simantics.db.layer0.variable;\r
-\r
-import org.simantics.db.Resource;\r
-\r
-public class ModelledVariablePropertyDescriptorImpl implements ModelledVariablePropertyDescriptor {\r
- final private Variable variable;\r
- final private Resource subject;\r
- final private Resource property;\r
- public ModelledVariablePropertyDescriptorImpl(Variable variable, Resource subject, Resource property) {\r
- this.variable = variable;\r
- this.subject = subject;\r
- this.property = property;\r
- }\r
- public Variable getVariable() {\r
- return variable;\r
- }\r
- public Resource getSubject() {\r
- return subject;\r
- }\r
- public Resource getProperty() {\r
- return property;\r
- }\r
- @Override\r
- public int hashCode() {\r
- return subject.hashCode() ^ 31*property.hashCode() ^ 41*variable.hashCode();\r
- }\r
- @Override\r
- public boolean equals(Object obj) {\r
- if(this == obj) return true;\r
- if(!(obj instanceof ModelledVariablePropertyDescriptorImpl)) return false;\r
- ModelledVariablePropertyDescriptorImpl other = (ModelledVariablePropertyDescriptorImpl)obj;\r
- if(!subject.equals(other.subject)) return false;\r
- if(!property.equals(other.property)) return false;\r
- return variable.equals(other.variable);\r
- }\r
-}\r
+package org.simantics.db.layer0.variable;
+
+import org.simantics.db.Resource;
+
+public class ModelledVariablePropertyDescriptorImpl implements ModelledVariablePropertyDescriptor {
+ final private Variable variable;
+ final private Resource subject;
+ final private Resource property;
+ public ModelledVariablePropertyDescriptorImpl(Variable variable, Resource subject, Resource property) {
+ this.variable = variable;
+ this.subject = subject;
+ this.property = property;
+ }
+ public Variable getVariable() {
+ return variable;
+ }
+ public Resource getSubject() {
+ return subject;
+ }
+ public Resource getProperty() {
+ return property;
+ }
+ @Override
+ public int hashCode() {
+ return subject.hashCode() ^ 31*property.hashCode() ^ 41*variable.hashCode();
+ }
+ @Override
+ public boolean equals(Object obj) {
+ if(this == obj) return true;
+ if(!(obj instanceof ModelledVariablePropertyDescriptorImpl)) return false;
+ ModelledVariablePropertyDescriptorImpl other = (ModelledVariablePropertyDescriptorImpl)obj;
+ if(!subject.equals(other.subject)) return false;
+ if(!property.equals(other.property)) return false;
+ return variable.equals(other.variable);
+ }
+}