We have two projects, and the kotlin one publishes a package that's imported by java. In kotlin, is a value class like In java, we can't see a con ...
We have two projects, and the kotlin one publishes a package that's imported by java. In kotlin, is a value class like In java, we can't see a con ...
I'm trying to use a room entity with a value class: and the entity: I get the following error: is it even possible to use room with value cla ...
I am trying to obtain a Value class type (from google.datastore.v1) from a Long type, or even an Integer, and can't seem to be able to do so. Here is ...
I need to mock a function from an arbitrary type to another type that is a value-class. For example with the following signature String => ValueCla ...
I'm trying to serialize a case class with optional value-class field to JSON using json4s. So far, I'm not able to get the optional value-class field ...
I need to control destruction of a value-class object in Matlab. The problem is as following. I have a some program (let's call it MyProg) that durin ...
Assuming I have a value case class and a sequence containing this value case class is there a way of converting those values into Int without t ...
When I define Wrapper as value class(extending AnyVal): I have following compile error for wrapperHolder: Why it doesn't work for value class ...
I have a common problem to write a C++ wrapper for a C library… my main storage a C-Struct pointers who represent always a C++ class containing just O ...
I'm writing a set of implicit Scala wrapper classes for an existing Java library (so that I can decorate that library to make it more convenient for S ...
I'm seeking some clarification to the definition of Value-based Classes. I can't imagine, how is the last bullet point (6) supposed to work together w ...
In the specification of value classes, it says: A value class can only extend universal traits and cannot be extended itself. A universal trait is ...
I've the following classes : classes B and C have class A parameters in common, Is it good practice to inherit from class A or using composite and ...
In my codebase I used tags to encode some information into types. As tags works using t.asInstanceOf[T @@ U] I could get away with many troubles with ...
I'm trying to mock a method that returns an instance of a value class (extends AnyVal) I'm getting some weird error message, which I understand (becau ...
I'm trying to implement an Option which doesn't consume extra memory for a wrapper. I create a class. Null stands for None, non-null value stands for ...
I am trying to add numeric operations to a value class that I have defined called Quantity. Code that I am using this is as follows... I use this c ...
I've created the Value Class To match against that class in scala: This works correctly, but in Akka, with the same class above, in the receive ...
I was inspecting the byte-code generated by implicit classes and wanted to compare to what is generated when they extend AnyVal. Without implicit: ...
I have defined the following class hierarchy where I want to restrict the the type parameter to be conformable with Double... ...is it possible to ...