X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.runtime%2Fscl%2FDataboard.scl;h=87afb8e53b5058aed3a7de745bedab468a08e090;hp=f8137662182f42b751b0654bd5175f540f1cd87e;hb=a8758de5bc19e5adb3f618d3038743a164f09912;hpb=12d9af17384d960b75d58c3935d2b7b46d93e87b diff --git a/bundles/org.simantics.scl.runtime/scl/Databoard.scl b/bundles/org.simantics.scl.runtime/scl/Databoard.scl index f81376621..87afb8e53 100644 --- a/bundles/org.simantics.scl.runtime/scl/Databoard.scl +++ b/bundles/org.simantics.scl.runtime/scl/Databoard.scl @@ -56,17 +56,11 @@ importJava "org.simantics.databoard.type.Datatype" where "Get a component type of a composite data type" @JavaName getComponentType datatypeComponentType :: Datatype -> ChildReference -> Datatype - - @private - @JavaName equals - datatypeEquals :: Datatype -> Datatype -> Boolean + instance Show Datatype where show = showDatatype -instance Eq Datatype where - (==) = datatypeEquals - /// Binding /// importJava "org.simantics.databoard.binding.Binding" where @@ -81,10 +75,6 @@ importJava "org.simantics.databoard.binding.Binding" where @JavaName compare compareObjects :: Serializable a => a -> a -> Integer - "Return true, if two serializable values are equal" - @JavaName equals - serializableEq :: Serializable a => a -> a -> Boolean - "The default value of a serializable type" @JavaName createDefault serializableDefaultValue :: Serializable a => a @@ -105,13 +95,6 @@ importJava "org.simantics.databoard.binding.Binding" where @JavaName getComponentBinding getComponentBinding :: Binding a -> ChildReference -> Binding b - @private - @JavaName equals - bindingEquals :: Binding a -> Binding a -> Boolean - -instance Eq (Binding a) where - (==) = bindingEquals - "Get a child data component of a composite serializable value" getSerializableComponent :: Serializable a => Serializable b => a -> ChildReference -> b getSerializableComponent object ref = getSerializableComponent_ object ref binding