From 42c7ca826243e6f2cf389f3794f2fb922128a89f Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Sun, 7 May 2017 09:49:13 +0300 Subject: [PATCH] SingletonRead base class refs #7196 Change-Id: Ib7751212d5cad181c74a1680962e4c84a43e4ebb --- .../db/common/request/SingletonRead.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 bundles/org.simantics.db.common/src/org/simantics/db/common/request/SingletonRead.java diff --git a/bundles/org.simantics.db.common/src/org/simantics/db/common/request/SingletonRead.java b/bundles/org.simantics.db.common/src/org/simantics/db/common/request/SingletonRead.java new file mode 100644 index 000000000..b24e856e7 --- /dev/null +++ b/bundles/org.simantics.db.common/src/org/simantics/db/common/request/SingletonRead.java @@ -0,0 +1,16 @@ +package org.simantics.db.common.request; + +public abstract class SingletonRead extends GenericReadBase2 { + + @Override + public boolean equals(Object arg0) { + if(arg0 == this) return true; + return getClass().equals(arg0.getClass()); + } + + @Override + public int hashCode() { + return getClass().hashCode(); + } + +} -- 2.47.1